Lines Matching refs:coroutines
1 """Support for tasks, coroutines and the scheduler."""
23 from . import coroutines
27 from .coroutines import _is_coroutine
100 if not coroutines.iscoroutine(coro):
265 # We use the `send` method directly, because coroutines
405 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
414 if any(coroutines.iscoroutine(f) for f in fs):
415 raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
559 """Return an iterator whose values are coroutines.
561 When waiting for the yielded coroutines you'll get the results (or
562 exceptions!) of the original Futures (or coroutines), in the order
576 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
659 if not coroutines.iscoroutine(coro_or_future):
719 """Return a future aggregating results from the given coroutines/futures.
912 if not coroutines.iscoroutine(coro):