SharedLoop hands each job’s coroutine to the host’s loop instead, and the job waits
for its result.
SharedLoop
tai42_kit.backend.shared_loop.SharedLoop
close has run, raises
at once.
Members
run
tai42_kit.backend.shared_loop.SharedLoop.run
coroutine to completion on the host’s loop and return its result, or raise its exception.
The job raises what the coroutine’s task ends with, CancelledError when the task was
cancelled (as the host’s run ends every task left on its loop).
An exception raised into the job’s wait (its pool’s time limit, a stop of the job) cancels the
coroutine’s task on the loop and waits on until that task has ended, its cleanup included:
the job holds what it holds until its coroutine has ended, and then raises that exception.
Each further exception raised into the wait is forwarded as another cancel the same way, and
the job ends with the last, each earlier one as its context. An error the coroutine ends with
meanwhile is logged at ERROR with its traceback, since the job raises the wait’s exception. A
coroutine that swallows the cancel is waited for until it returns, and the job still ends
with the wait’s exception.
Parameters
close
tai42_kit.backend.shared_loop.SharedLoop.close

