Lines Matching refs:coroutine
81 """A coroutine wrapped in a Future."""
104 raise TypeError(f"a coroutine was expected, got {coro!r}")
155 """Return the list of stack frames for this task's coroutine.
157 If the coroutine is not done, this returns the stack where it is
158 suspended. If the coroutine has completed successfully or was
159 cancelled, this returns an empty list. If the coroutine was
173 returned for a suspended coroutine.
178 """Print the stack or traceback for this task's coroutine.
192 wrapped coroutine on the next cycle through the event loop.
193 The coroutine then has a chance to clean up or even deny
204 task will be marked as cancelled when the wrapped coroutine
367 """Schedule the execution of a coroutine object in a spawn task.
427 """Wait for the single Future or coroutine to complete, with timeout.
431 Returns result of the Future or coroutine. When a timeout occurs,
437 This function is a coroutine.
557 # This is *not* a @coroutine! It is just an iterator (yielding Futures).
615 @types.coroutine
645 """Wrap a coroutine or an awaitable in a future.
664 raise TypeError('An asyncio.Future, a coroutine or an awaitable '
677 @types.coroutine
681 Wraps awaitable (an object with __await__) into a coroutine
853 *except* that if the coroutine containing it is cancelled, the
908 """Submit a coroutine object to a given event loop.
913 raise TypeError('A coroutine object is required')