Home
last modified time | relevance | path

Searched refs:__await__ (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_coroutines.py19 def __await__(self): member in AsyncYieldFrom
27 def __await__(self): member in AsyncYield
47 aw = coro.__await__()
680 aw = coro.__await__()
690 aw = coro.__await__()
702 self.assertIn('__iter__', dir(coro.__await__()))
703 self.assertIn('coroutine_wrapper', repr(coro.__await__()))
820 await_iter = coro.__await__()
973 def __await__(self): member in CoroutineTest.test_await_5.Awaitable
986 def __await__(self): member in CoroutineTest.test_await_6.Awaitable
[all …]
Dtest_asyncgen.py454 with contextlib.closing(obj.__await__()) as g:
565 def __await__(self): member in AsyncGenAsyncioTest.test_anext_bad_await.bad_awaitable.BadAwaitable
612 def __await__(self): member in AsyncGenAsyncioTest.test_anext_await_raises.RaisingAwaitable
649 with contextlib.closing(anext(agen, "default").__await__()) as g:
662 with contextlib.closing(anext(agen, "default").__await__()) as g:
670 with contextlib.closing(anext(agen, "default").__await__()) as g:
691 with contextlib.closing(anext(agen, "default").__await__()) as g:
711 with contextlib.closing(anext(agen, "default").__await__()) as g:
727 with contextlib.closing(anext(agen, "default").__await__()) as g:
Dtest_types.py1768 def __await__(self): member in CoroutineTests.test_non_gen_values.Awaitable
1806 def __await__(self): return self member in CoroutineTests.test_duck_coro.CoroLike
1813 self.assertIs(foo().__await__(), coro)
1820 def __await__(self): return self member in CoroutineTests.test_duck_corogen.CoroGenLike
1829 self.assertIs(foo().__await__(), coro)
1852 self.assertIs(wrapper.__await__(), wrapper)
1996 self.assertIs(wrapper.__await__(), gen)
2017 self.assertIs(foo().__await__(), gen)
Dtest_collections.py780 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.Bar
788 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.MinimalCoro
830 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.Bar
838 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.MinimalCoro
868 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
878 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
Dtest_inspect.py228 def __await__(): member in TestPredicates.test_isawaitable.Future
235 not_fut.__await__ = lambda: None
/third_party/python/Lib/test/test_asyncio/
Dtest_pep492.py28 def __await__(self): member in FakeCoro
128 def __await__(self): member in CoroutineTests.test_function_returning_awaitable.Awaitable
Dtest_futures.py207 fut.__await__()
Dtest_events.py74 def __await__(self): member in CoroLike
1741 it = self.loop.run_in_executor(None, func).__await__()
Dtest_tasks.py96 def __await__(self): member in CoroLikeObject
320 def __await__(self): member in BaseTaskTests.test_ensure_future_awaitable.Aw
/third_party/python/Lib/asyncio/
Dcoroutines.py82 def __await__(self): member in CoroWrapper
131 await_meth = res.__await__
Dfutures.py281 def __await__(self): member in Future
289 __iter__ = __await__ # make compatible with 'yield from'.
Dtasks.py644 return (yield from awaitable.__await__())
/third_party/python/Doc/library/
Dcollections.abc.rst175 :class:`Awaitable` [1]_ ``__await__``
295 expressions. Custom implementations must provide the :meth:`__await__`
304 *awaitables*, even though they do not have an :meth:`__await__` method.
316 :meth:`__await__`. All :class:`Coroutine` instances are also instances of
322 *awaitables*, even though they do not have an :meth:`__await__` method.
Dtypes.rst483 the :meth:`__await__` method.
Ddis.rst577 ``o.__await__``.
/third_party/python/Lib/
Dtypes.py247 __await__ = __iter__ variable in _GeneratorWrapper
D_collections_abc.py110 def __await__(self): member in Awaitable
/third_party/python/Misc/NEWS.d/
D3.7.0a4.rst333 NotImplementedError. Task._step() and Future.__await__() raise proper
/third_party/python/Doc/reference/
Ddatamodel.rst2864 An :term:`awaitable` object generally implements an :meth:`~object.__await__` method.
2872 are also awaitable, but they do not implement :meth:`~object.__await__`.
2874 .. method:: object.__await__(self)
2891 A coroutine's execution can be controlled by calling :meth:`~object.__await__` and
2910 :meth:`~object.__await__`. If *value* is not ``None``, this method delegates
2914 iterating over the :meth:`__await__` return value, described above.
2923 when iterating over the :meth:`~object.__await__` return value, described
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py31 def __await__(self): yield member in AwaitableClass
/third_party/python/Tools/c-analyzer/
DTODO447 Objects/typeobject.c:slot_am_await():PyId___await__ _Py_IDENTIFIER(__await__)
/third_party/python/Doc/
Dglossary.rst145 a :term:`coroutine` or an object with an :meth:`__await__` method.
/third_party/python/Doc/whatsnew/
D3.5.rst184 defining the :meth:`__await__` method.
/third_party/python/Doc/c-api/
Dtypeobj.rst196 …`~PyAsyncMethods.am_await` | :c:type:`unaryfunc` | __await__ |
/third_party/python/Objects/
Dtypeobject.c7792 _Py_IDENTIFIER(__await__); in slot_am_await()

12