/external/clang/test/SemaCXX/ |
D | coroutines.cpp | 3 struct awaitable { struct 75 awaitable yield_value(int); // expected-note 2{{candidate}} 76 awaitable yield_value(yielded_thing); // expected-note 2{{candidate}} 130 CtorDtor(awaitable a) { in CtorDtor() 168 template void await_template(awaitable); 171 …awaitable operator co_await(indirectly_awaitable); // expected-note {{should be declared prior to}} 189 awaitable yield_value(int()); 199 awaitable f(), f(int); // expected-note 4{{possible target}}
|
/external/python/cpython3/Lib/test/ |
D | test_asyncgen.py | 14 def awaitable(*, throw=False): function 143 await awaitable() 146 await awaitable() 148 await awaitable() 155 await awaitable() 157 await awaitable() 184 await awaitable() 186 await awaitable(throw=True) 194 await awaitable() 268 await awaitable() [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | async_case.py | 100 fut, awaitable = query 102 ret = await awaitable
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testasync.py | 174 awaitable = spec(1, 2, c=3) 176 await awaitable 186 self.assertTrue(asyncio.iscoroutine(awaitable)) 199 awaitable = mock_method(1, 2, c=3) 203 self.assertTrue(asyncio.iscoroutine(awaitable)) 204 self.assertTrue(inspect.isawaitable(awaitable)) 212 await awaitable
|
/external/python/cpython3/Doc/library/ |
D | asyncio-task.rst | 112 We say that an object is an **awaitable** object if it can be used 116 There are three main types of *awaitable* objects: 182 A :class:`Future` is a special **low-level** awaitable object that 322 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws* 325 If any awaitable in *aws* is a coroutine, it is automatically 398 Protect an :ref:`awaitable object <asyncio-awaitables>` 438 Wait for the *aw* :ref:`awaitable <asyncio-awaitables>` 495 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws* 538 If any awaitable in *aws* is a coroutine, it is automatically 582 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws*
|
D | asyncio-future.rst | 48 awaitable (:func:`inspect.isawaitable` is used for the test.) 58 The function accepts any :term:`awaitable` object. 75 Future is an :term:`awaitable` object. Coroutines can await on
|
D | types.rst | 379 :term:`awaitable`. However, it may not necessarily implement 386 will be wrapped in an *awaitable* proxy object. All other types
|
D | collections.abc.rst | 184 ABC for :term:`awaitable` objects, which can be used in :keyword:`await`
|
D | asyncio-llapi-index.rst | 48 - Run a Future/Task/awaitable until complete.
|
D | dis.rst | 588 Returning awaitable objects from ``__aiter__`` is no longer
|
/external/python/cpython3/Doc/reference/ |
D | expressions.rst | 627 :term:`awaitable` object, and the execution starts when this object 679 Returns an awaitable which when run starts to execute the asynchronous 683 the returned awaitable, which when run will continue to the next yield 687 yielding another value, the awaitable instead raises a 696 Returns an awaitable which when run resumes the execution of the 700 The awaitable returned by the :meth:`asend` method will return the next 711 Returns an awaitable that raises an exception of type ``type`` at the point 716 raised by the awaitable. 718 raises a different exception, then when the awaitable is run that exception 719 propagates to the caller of the awaitable. [all …]
|
D | datamodel.rst | 646 will return an :term:`awaitable` which when awaited 2585 An :term:`awaitable` object generally implements an :meth:`__await__` method. 2587 are awaitable. 2593 are also awaitable, but they do not implement :meth:`__await__`. 2598 :term:`awaitable` objects. For instance, :class:`asyncio.Future` implements 2603 .. seealso:: :pep:`492` for additional information about awaitable objects. 2611 :term:`Coroutine` objects are :term:`awaitable` objects. 2677 Must return an *awaitable* resulting in a next value of the iterator. Should 2698 Prior to Python 3.7, ``__aiter__`` could return an *awaitable* 2720 difference being that it must return an *awaitable*. [all …]
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.8.1rc1.rst | 296 AsyncMock fix for return values that are awaitable types. This also covers 297 side_effect iterable values that happend to be awaitable, and wraps 298 callables that return an awaitable type. Before these awaitables were being
|
D | 3.6.0b4.rst | 87 the issue, __aiter__ returning an awaitable should result in
|
D | 3.7.0b4.rst | 60 ``__aexit__()`` return non-awaitable object.
|
D | 3.6.0a2.rst | 106 Update the __aiter__ protocol: instead of returning an awaitable that
|
D | 3.6.6rc1.rst | 75 ``__aexit__()`` return non-awaitable object.
|
D | 3.5.1rc1.rst | 913 asyncio: ensure_future() now accepts awaitable objects.
|
D | 3.5.2rc1.rst | 369 Update the __aiter__ protocol: instead of returning an awaitable that
|
/external/python/cpython3/Lib/asyncio/ |
D | tasks.py | 678 def _wrap_awaitable(awaitable): argument 684 return (yield from awaitable.__await__())
|
/external/python/cpython3/Python/ |
D | ceval.c | 1964 PyObject *awaitable = NULL; in _PyEval_EvalFrameDefault() local 1969 awaitable = type->tp_as_async->am_anext(aiter); in _PyEval_EvalFrameDefault() 1970 if (awaitable == NULL) { in _PyEval_EvalFrameDefault() 1992 awaitable = _PyCoro_GetAwaitableIter(next_iter); in _PyEval_EvalFrameDefault() 1993 if (awaitable == NULL) { in _PyEval_EvalFrameDefault() 2007 PUSH(awaitable); in _PyEval_EvalFrameDefault()
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 171 by adding :term:`awaitable objects <awaitable>`, 183 can be *awaited*, as long as it implements the :term:`awaitable` protocol by 256 an :term:`awaitable` object will result in a 826 now accept all kinds of :term:`awaitable objects <awaitable>`. 1968 :term:`awaitables <awaitable>`.
|
D | 3.6.rst | 828 now accept all kinds of :term:`awaitable objects <awaitable>`. 1942 iterator directly instead of returning an awaitable as previously.
|
/external/python/cpython3/Doc/ |
D | glossary.rst | 114 :meth:`__anext__` method returns an awaitable object which will execute 121 resumes with another awaitable returned by :meth:`__anext__`, it 131 methods. ``__anext__`` must return an :term:`awaitable` object. 141 awaitable
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 786 objects which implement :term:`awaitable` and :term:`asynchronous iterator` 2308 :term:`awaitable` and :term:`asynchronous iterator` objects. 2327 This slot may be set to ``NULL`` if an object is not an :term:`awaitable`. 2335 Must return an :term:`awaitable` object. See :meth:`__anext__` for details. 2346 Must return an :term:`awaitable` object. See :meth:`__anext__` for details.
|