Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_coroutines.py17 def __await__(self): member in AsyncYieldFrom
25 def __await__(self): member in AsyncYield
45 aw = coro.__await__()
678 aw = coro.__await__()
688 aw = coro.__await__()
700 self.assertIn('__iter__', dir(coro.__await__()))
701 self.assertIn('coroutine_wrapper', repr(coro.__await__()))
818 await_iter = coro.__await__()
971 def __await__(self): member in CoroutineTest.test_await_5.Awaitable
984 def __await__(self): member in CoroutineTest.test_await_6.Awaitable
[all …]
Dtest_types.py1357 def __await__(self): member in CoroutineTests.test_non_gen_values.Awaitable
1395 def __await__(self): return self member in CoroutineTests.test_duck_coro.CoroLike
1402 self.assertIs(foo().__await__(), coro)
1409 def __await__(self): return self member in CoroutineTests.test_duck_corogen.CoroGenLike
1418 self.assertIs(foo().__await__(), coro)
1441 self.assertIs(wrapper.__await__(), wrapper)
1585 self.assertIs(wrapper.__await__(), gen)
1606 self.assertIs(foo().__await__(), gen)
Dtest_collections.py690 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.Bar
698 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.MinimalCoro
740 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.Bar
748 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.MinimalCoro
778 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
788 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
Dtest_inspect.py227 def __await__(): member in TestPredicates.test_isawaitable.Future
234 not_fut.__await__ = lambda: None
/external/python/cpython3/Doc/library/
Dcollections.abc.rst92 :class:`Awaitable` ``__await__``
185 expressions. Custom implementations must provide the :meth:`__await__`
194 *awaitables*, even though they do not have an :meth:`__await__` method.
206 :meth:`__await__`. All :class:`Coroutine` instances are also instances of
212 *awaitables*, even though they do not have an :meth:`__await__` method.
Dtypes.rst380 the :meth:`__await__` method.
Ddis.rst577 ``o.__await__``.
/external/python/cpython3/Lib/asyncio/
Dcoroutines.py82 def __await__(self): member in CoroWrapper
131 await_meth = res.__await__
Dfutures.py257 def __await__(self): member in Future
265 __iter__ = __await__ # make compatible with 'yield from'.
Dlocks.py89 def __await__(self): member in _ContextManagerMixin
94 return self.__acquire_ctx().__await__()
Dtasks.py684 return (yield from awaitable.__await__())
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py28 def __await__(self): member in FakeCoro
131 def __await__(self): member in CoroutineTests.test_function_returning_awaitable.Awaitable
Dtest_futures.py190 fut.__await__()
Dtest_events.py71 def __await__(self): member in CoroLike
1695 it = self.loop.run_in_executor(None, func).__await__()
Dtest_tasks.py79 def __await__(self): member in CoroLikeObject
219 def __await__(self): member in BaseTaskTests.test_ensure_future_awaitable.Aw
/external/python/cpython3/Lib/
Dtypes.py242 __await__ = __iter__ variable in _GeneratorWrapper
D_collections_abc.py104 def __await__(self): member in Awaitable
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst333 NotImplementedError. Task._step() and Future.__await__() raise proper
D3.8.0rc1.rst481 specs as async objects but failed to evaluate classes with `__await__` but
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2585 An :term:`awaitable` object generally implements an :meth:`__await__` method.
2593 are also awaitable, but they do not implement :meth:`__await__`.
2595 .. method:: object.__await__(self)
2612 A coroutine's execution can be controlled by calling :meth:`__await__` and
2631 :meth:`__await__`. If *value* is not ``None``, this method delegates
2635 iterating over the :meth:`__await__` return value, described above.
2644 when iterating over the :meth:`__await__` return value, described
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py23 def __await__(self): member in AwaitableClass
/external/python/pybind11/docs/
Dchangelog.rst40 * Added support for ``__await__``, ``__aiter__``, and ``__anext__`` protocols.
/external/python/cpython3/Doc/
Dglossary.rst143 a :term:`coroutine` or an object with an :meth:`__await__` method.
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst203 …:`~PyAsyncMethods.am_await` | :c:type:`unaryfunc` | __await__ |
/external/python/cpython3/Objects/
Dtypeobject.c6820 _Py_IDENTIFIER(__await__); in slot_am_await()

12