Searched refs:awaitable (Results 1 – 22 of 22) sorted by relevance
/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 136 await awaitable() 139 await awaitable() 141 await awaitable() 148 await awaitable() 150 await awaitable() 174 await awaitable() 176 await awaitable(throw=True) 184 await awaitable() 257 await awaitable() [all …]
|
/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 304 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws* 307 If any awaitable in *aws* is a coroutine, it is automatically 377 Protect an :ref:`awaitable object <asyncio-awaitables>` 414 Wait for the *aw* :ref:`awaitable <asyncio-awaitables>` 471 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws* 475 If any awaitable in *aws* is a coroutine, it is automatically 553 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws*
|
D | asyncio-future.rst | 41 awaitable (:func:`inspect.isawaitable` is used for the test.) 51 The function accepts any :term:`awaitable` object. 68 Future is an :term:`awaitable` object. Coroutines can await on
|
D | types.rst | 364 :term:`awaitable`. However, it may not necessarily implement 371 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 | 571 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 an 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 | 650 will return an :term:`awaitable` which when awaited 2554 An :term:`awaitable` object generally implements an :meth:`__await__` method. 2556 are awaitable. 2562 are also awaitable, but they do not implement :meth:`__await__`. 2567 :term:`awaitable` objects. For instance, :class:`asyncio.Future` implements 2572 .. seealso:: :pep:`492` for additional information about awaitable objects. 2580 :term:`Coroutine` objects are :term:`awaitable` objects. 2646 Must return an *awaitable* resulting in a next value of the iterator. Should 2667 Prior to Python 3.7, ``__aiter__`` could return an *awaitable* 2689 difference that it must return an *awaitable*. [all …]
|
/external/python/cpython3/Lib/asyncio/ |
D | tasks.py | 597 def _wrap_awaitable(awaitable): argument 603 return (yield from awaitable.__await__())
|
/external/python/cpython3/Misc/NEWS.d/ |
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/Python/ |
D | ceval.c | 1696 PyObject *awaitable = NULL; in _PyEval_EvalFrameDefault() local 1701 awaitable = type->tp_as_async->am_anext(aiter); in _PyEval_EvalFrameDefault() 1702 if (awaitable == NULL) { in _PyEval_EvalFrameDefault() 1725 awaitable = _PyCoro_GetAwaitableIter(next_iter); in _PyEval_EvalFrameDefault() 1726 if (awaitable == NULL) { in _PyEval_EvalFrameDefault() 1740 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/c-api/ |
D | typeobj.rst | 230 objects which implement :term:`awaitable` and :term:`asynchronous iterator` 1379 :term:`awaitable` and :term:`asynchronous iterator` objects. 1398 This slot may be set to *NULL* if an object is not an :term:`awaitable`. 1406 Must return an :term:`awaitable` object. See :meth:`__anext__` for details. 1417 Must return an :term:`awaitable` object. See :meth:`__anext__` for details.
|
/external/python/cpython3/Doc/ |
D | glossary.rst | 110 :meth:`__anext__` method returns an awaitable object which will execute 117 resumes with another awaitable returned by :meth:`__anext__`, it 127 methods. ``__anext__`` must return an :term:`awaitable` object. 137 awaitable
|