Home
last modified time | relevance | path

Searched refs:awaitable (Results 1 – 25 of 39) 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/llvm-project/clang/test/CodeGenCoroutines/
Dcoro-newpm-pipeline.cpp35 struct awaitable { struct
47 awaitable initial_suspend() { return {}; } in initial_suspend()
48 awaitable final_suspend() noexcept { return {}; } in final_suspend()
Dcoro-always-inline.cpp16 struct awaitable { struct
31 awaitable initial_suspend() { return {}; } in initial_suspend()
32 awaitable final_suspend() noexcept { return {}; } in final_suspend()
Dcoro-symmetric-transfer-02.cpp31 auto await_transform(Awaitable &&awaitable) { in await_transform()
32 return awaitable.co_viaIfAsync(); in await_transform()
/external/llvm-project/clang/test/SemaCXX/
Dcoroutines.cpp54 struct awaitable { struct
134 awaitable yield_value(int); // expected-note 2{{candidate}}
135 awaitable yield_value(yielded_thing); // expected-note 2{{candidate}}
300 CtorDtor(awaitable a) { in CtorDtor()
408 awaitable operator co_await(coawait_arg_type) noexcept;
417 template void await_template(awaitable);
420awaitable operator co_await(indirectly_awaitable); // expected-note {{should be declared prior to}}
449 awaitable initial_suspend();
450 awaitable final_suspend() noexcept;
455 awaitable operator co_await(await_arg_1);
[all …]
Dcoreturn-eh.cpp9 struct awaitable { struct
Dcoroutine_handle-addres-return-type.cpp60 struct awaitable { struct
Dcoreturn.cpp7 struct awaitable { struct
/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/llvm-project/clang/test/CodeGenCXX/
Dubsan-coroutines.cpp41 struct awaitable { struct
49 awaitable a; in main() argument
/external/llvm-project/clang/test/AST/
Dcoroutine-locals-cleanup.cpp31 auto await_transform(Awaitable &&awaitable) { in await_transform()
32 return awaitable.co_viaIfAsync(); in await_transform()
/external/llvm-project/llvm/test/Transforms/Coroutines/
Dcoro-frame-reuse-alloca-01.ll6 %struct.awaitable = type { i8 }
14 %ref.tmp7 = alloca %struct.awaitable, align 1
16 %ref.tmp18 = alloca %struct.awaitable, align 1
Dcoro-frame-reuse-alloca-02.ll6 %struct.awaitable = type { i8 }
16 %ref.tmp7 = alloca %struct.awaitable, align 1
18 %ref.tmp18 = alloca %struct.awaitable, align 1
/external/python/cpython3/Lib/unittest/
Dasync_case.py100 fut, awaitable = query
102 ret = await awaitable
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py208 awaitable = spec(1, 2, c=3)
210 await awaitable
220 self.assertTrue(asyncio.iscoroutine(awaitable))
237 awaitable = mock_method(1, 2, c=3)
241 self.assertTrue(asyncio.iscoroutine(awaitable))
242 self.assertTrue(inspect.isawaitable(awaitable))
250 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
324 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws*
327 If any awaitable in *aws* is a coroutine, it is automatically
408 Protect an :ref:`awaitable object <asyncio-awaitables>`
448 Wait for the *aw* :ref:`awaitable <asyncio-awaitables>`
506 Run :ref:`awaitable objects <asyncio-awaitables>` in the *aws*
551 If any awaitable in *aws* is a coroutine, it is automatically
595 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.rst425 :term:`awaitable`. However, it may not necessarily implement
432 will be wrapped in an *awaitable* proxy object. All other types
Dcollections.abc.rst192 ABC for :term:`awaitable` objects, which can be used in :keyword:`await`
/external/python/cpython3/Doc/reference/
Dexpressions.rst631 :term:`awaitable` object, and the execution starts when this object
683 Returns an awaitable which when run starts to execute the asynchronous
687 the returned awaitable, which when run will continue to the next yield
691 yielding another value, the awaitable instead raises a
700 Returns an awaitable which when run resumes the execution of the
704 The awaitable returned by the :meth:`asend` method will return the next
715 Returns an awaitable that raises an exception of type ``type`` at the point
720 raised by the awaitable.
722 raises a different exception, then when the awaitable is run that exception
723 propagates to the caller of the awaitable.
[all …]
/external/python/cpython3/Lib/asyncio/
Dtasks.py681 def _wrap_awaitable(awaitable): argument
687 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.9.0a2.rst518 AsyncMock fix for return values that are awaitable types. This also covers
519 side_effect iterable values that happened to be awaitable, and wraps
520 callables that return an awaitable type. Before these awaitables were being
D3.9.0rc2.rst200 itself and the completion of the wrapped awaitable.
D3.7.0b4.rst60 ``__aexit__()`` return non-awaitable object.

12