Home
last modified time | relevance | path

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

12

/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
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/
Dasync_case.py100 fut, awaitable = query
102 ret = await awaitable
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py174 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/
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
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*
Dasyncio-future.rst48 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
Dtypes.rst379 :term:`awaitable`. However, it may not necessarily implement
386 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.rst588 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 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 …]
Ddatamodel.rst646 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/
D3.8.1rc1.rst296 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
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/Lib/asyncio/
Dtasks.py678 def _wrap_awaitable(awaitable): argument
684 return (yield from awaitable.__await__())
/external/python/cpython3/Python/
Dceval.c1964 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/
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/
Dglossary.rst114 :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/
Dtypeobj.rst786 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.

12