Home
last modified time | relevance | path

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

12

/external/python/python-api-core/google/api_core/
Dgrpc_helpers_async.py82 def __await__(self): member in _WrappedUnaryResponseMixin
84 response = yield from self._call.__await__()
274 def __await__(self): member in FakeUnaryUnaryCall
275 response = yield from self._future.__await__()
292 def __await__(self): member in FakeStreamUnaryCall
293 response = yield from self._future.__await__()
/external/python/cpython3/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.py1808 def __await__(self): member in CoroutineTests.test_non_gen_values.Awaitable
1846 def __await__(self): return self member in CoroutineTests.test_duck_coro.CoroLike
1853 self.assertIs(foo().__await__(), coro)
1860 def __await__(self): return self member in CoroutineTests.test_duck_corogen.CoroGenLike
1869 self.assertIs(foo().__await__(), coro)
1892 self.assertIs(wrapper.__await__(), wrapper)
2036 self.assertIs(wrapper.__await__(), gen)
2057 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
/external/python/cpython3/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.py650 return (yield from awaitable.__await__())
/external/python/cpython3/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.py212 fut.__await__()
Dtest_events.py74 def __await__(self): member in CoroLike
1741 it = self.loop.run_in_executor(None, func).__await__()
Dtest_tasks.py97 def __await__(self): member in CoroLikeObject
327 def __await__(self): member in BaseTaskTests.test_ensure_future_awaitable.Aw
/external/python/cpython3/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__``.
/external/python/cpython3/Lib/
Dtypes.py247 __await__ = __iter__ variable in _GeneratorWrapper
D_collections_abc.py110 def __await__(self): member in Awaitable
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst333 NotImplementedError. Task._step() and Future.__await__() raise proper
/external/python/cpython3/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
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py31 def __await__(self): yield member in AwaitableClass
/external/python/typing/typing_extensions/src/
Dtest_typing_extensions.py451 def __await__(self) -> typing.Iterator[T_a]: member in AwaitableWrapper
/external/python/cpython3/Tools/c-analyzer/
DTODO447 Objects/typeobject.c:slot_am_await():PyId___await__ _Py_IDENTIFIER(__await__)
/external/python/cpython3/Doc/
Dglossary.rst145 a :term:`coroutine` or an object with an :meth:`__await__` method.
/external/python/pybind11/docs/
Dchangelog.rst478 * Added support for ``__await__``, ``__aiter__``, and ``__anext__`` protocols.

12