Home
last modified time | relevance | path

Searched refs:Awaitable (Results 1 – 18 of 18) sorted by relevance

/external/clang/lib/Sema/
DSemaCoroutine.cpp222 ExprResult Awaitable = buildOperatorCoawaitCall(*this, S, Loc, E); in ActOnCoawaitExpr() local
223 if (Awaitable.isInvalid()) in ActOnCoawaitExpr()
225 return BuildCoawaitExpr(Loc, Awaitable.get()); in ActOnCoawaitExpr()
282 ExprResult Awaitable = in ActOnCoyieldExpr() local
284 if (Awaitable.isInvalid()) in ActOnCoyieldExpr()
288 Awaitable = buildOperatorCoawaitCall(*this, S, Loc, Awaitable.get()); in ActOnCoyieldExpr()
289 if (Awaitable.isInvalid()) in ActOnCoyieldExpr()
292 return BuildCoyieldExpr(Loc, Awaitable.get()); in ActOnCoyieldExpr()
/external/python/cpython3/Lib/test/
Dtest_coroutines.py970 class Awaitable: class
975 return (await Awaitable())
983 class Awaitable: class
988 return (await Awaitable())
993 class Awaitable: class
999 return (await Awaitable())
1004 class Awaitable: class
1007 async def foo(): return await Awaitable()
1068 class Awaitable: class
1073 return await Awaitable()
[all …]
Dtest_collections.py20 from collections.abc import Awaitable, Coroutine
703 self.assertNotIsInstance(x, Awaitable)
704 self.assertFalse(issubclass(type(x), Awaitable), repr(type(x)))
708 self.assertIsInstance(x, Awaitable)
709 self.assertTrue(issubclass(type(x), Awaitable))
715 self.assertNotIsInstance(c, Awaitable)
718 self.assertIsInstance(c, Awaitable)
723 self.assertTrue(isinstance(CoroLike(), Awaitable))
724 self.assertTrue(issubclass(CoroLike, Awaitable))
758 self.assertIsInstance(x, Awaitable)
[all …]
Dtest_types.py1356 class Awaitable: class
1359 aw = Awaitable()
1446 self.assertIsInstance(wrapper, collections.abc.Awaitable)
Dtest_typing.py2962 self.assertIsInstance(g, typing.Awaitable)
2963 self.assertNotIsInstance(foo, typing.Awaitable)
/external/python/cpython3/Doc/library/
Dcollections.abc.rst92 :class:`Awaitable` ``__await__``
93 :class:`Coroutine` :class:`Awaitable` ``send``, ``throw`` ``close``
182 .. class:: Awaitable
195 Using ``isinstance(gencoro, Awaitable)`` for them will return ``False``.
207 :class:`Awaitable`. See also the definition of :term:`coroutine`.
Dtyping.rst730 .. class:: Awaitable(Generic[T_co])
732 A generic version of :class:`collections.abc.Awaitable`.
736 .. class:: Coroutine(Awaitable[V_co], Generic[T_co T_contra, V_co])
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py130 class Awaitable: class
137 return Awaitable()
/external/python/cpython3/Lib/asyncio/
Dstaggered.py15 coro_fns: typing.Iterable[typing.Callable[[], typing.Awaitable]], argument
Dcoroutines.py135 if isinstance(res, collections.abc.Awaitable):
/external/python/cpython3/Lib/
D_collections_abc.py99 class Awaitable(metaclass=ABCMeta): class
109 if cls is Awaitable:
114 class Coroutine(Awaitable):
Dtyping.py1436 Awaitable = _alias(collections.abc.Awaitable, T_co) variable
Dinspect.py234 isinstance(object, collections.abc.Awaitable))
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b3.rst42 instance of collections.abc.Generator; collections.abc.Awaitable and
D3.6.0a2.rst271 Also classes for :pep:`492` (Awaitable, AsyncIterable, AsyncIterator) have been
D3.5.2rc1.rst426 Also classes for :pep:`492` (Awaitable, AsyncIterable, AsyncIterator) have been
/external/python/cpython3/Doc/whatsnew/
D3.5.rst948 New :class:`~collections.abc.Awaitable`, :class:`~collections.abc.Coroutine`,
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2582 Awaitable Objects