Home
last modified time | relevance | path

Searched refs:awaitable (Results 1 – 22 of 22) sorted by relevance

/external/clang/test/SemaCXX/
Dcoroutines.cpp3 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);
171awaitable 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/
Dtest_asyncgen.py14 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/
Dasyncio-task.rst112 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*
Dasyncio-future.rst41 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
Dtypes.rst364 :term:`awaitable`. However, it may not necessarily implement
371 will be wrapped in an *awaitable* proxy object. All other types
Dcollections.abc.rst184 ABC for :term:`awaitable` objects, which can be used in :keyword:`await`
Dasyncio-llapi-index.rst48 - Run a Future/Task/awaitable until complete.
Ddis.rst571 Returning awaitable objects from ``__aiter__`` is no longer
/external/python/cpython3/Doc/reference/
Dexpressions.rst627 :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 …]
Ddatamodel.rst650 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/
Dtasks.py597 def _wrap_awaitable(awaitable): argument
603 return (yield from awaitable.__await__())
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b4.rst87 the issue, __aiter__ returning an awaitable should result in
D3.7.0b4.rst60 ``__aexit__()`` return non-awaitable object.
D3.6.0a2.rst106 Update the __aiter__ protocol: instead of returning an awaitable that
D3.6.6rc1.rst75 ``__aexit__()`` return non-awaitable object.
D3.5.1rc1.rst913 asyncio: ensure_future() now accepts awaitable objects.
D3.5.2rc1.rst369 Update the __aiter__ protocol: instead of returning an awaitable that
/external/python/cpython3/Python/
Dceval.c1696 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/
D3.5.rst171 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>`.
D3.6.rst828 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/
Dtypeobj.rst230 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/
Dglossary.rst110 :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