Home
last modified time | relevance | path

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

12

/external/pandora/avatar/avatar/
Daio.py19 from typing import Any, Awaitable, Callable, TypeVar
41 def run_until_complete(coro: Awaitable[_T]) -> _T:
47 def asynchronous(func: Callable[..., Awaitable[_T]]) -> Callable[..., _T]:
/external/python/python-api-core/google/api_core/operations_v1/transports/
Dbase.py17 from typing import Awaitable, Callable, Optional, Sequence, Union
199 Awaitable[operations_pb2.ListOperationsResponse],
209 Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
218 Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
227 Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
/external/pigweed/pw_transfer/integration_test/
Dproxy.py31 from typing import Any, Awaitable, Callable, Iterable, List, Optional
76 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]):
100 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]):
118 send_data: Callable[[bytes], Awaitable[None]],
167 send_data: Callable[[bytes], Awaitable[None]],
204 self, send_data: Callable[[bytes], Awaitable[None]], rate: float
225 send_data: Callable[[bytes], Awaitable[None]],
296 send_data: Callable[[bytes], Awaitable[None]],
339 send_data: Callable[[bytes], Awaitable[None]],
385 send_data: Callable[[bytes], Awaitable[None]],
/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/bumble/bumble/
Dutils.py23 from typing import Awaitable, Set, TypeVar
72 def abort_on(self, event: str, awaitable: Awaitable[_T]) -> Awaitable[_T]:
161 running_tasks: Set[Awaitable] = set()
/external/python/pyee/pyee/
Dtrio.py5 from typing import Any, AsyncGenerator, Awaitable, Callable, Dict, Optional, Tuple, Type
74 ) -> Callable[[], Awaitable[None]]:
/external/python/cpython3/Lib/test/
Dtest_coroutines.py972 class Awaitable: class
977 return (await Awaitable())
985 class Awaitable: class
990 return (await Awaitable())
995 class Awaitable: class
1001 return (await Awaitable())
1006 class Awaitable: class
1009 async def foo(): return await Awaitable()
1070 class Awaitable: class
1075 return await Awaitable()
[all …]
Dtest_collections.py21 from collections.abc import Awaitable, Coroutine
793 self.assertNotIsInstance(x, Awaitable)
794 self.assertFalse(issubclass(type(x), Awaitable), repr(type(x)))
798 self.assertIsInstance(x, Awaitable)
799 self.assertTrue(issubclass(type(x), Awaitable))
805 self.assertNotIsInstance(c, Awaitable)
808 self.assertIsInstance(c, Awaitable)
813 self.assertTrue(isinstance(CoroLike(), Awaitable))
814 self.assertTrue(issubclass(CoroLike, Awaitable))
848 self.assertIsInstance(x, Awaitable)
[all …]
Dtest_genericalias.py60 Awaitable, Coroutine,
Dtest_types.py1807 class Awaitable: class
1810 aw = Awaitable()
1897 self.assertIsInstance(wrapper, collections.abc.Awaitable)
Dtest_typing.py3480 self.assertIsInstance(g, typing.Awaitable)
3481 self.assertNotIsInstance(foo, typing.Awaitable)
3925 self.assertEqual(typing.Sized | typing.Awaitable, Union[typing.Sized, typing.Awaitable])
5115 typing.Awaitable: 'Awaitable',
5154 typing.Awaitable[Any]: 'Awaitable',
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py127 class Awaitable: class
134 return Awaitable()
/external/python/cpython3/Doc/library/
Dcollections.abc.rst175 :class:`Awaitable` [1]_ ``__await__``
176 :class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw`` ``close``
292 .. class:: Awaitable
305 Using ``isinstance(gencoro, Awaitable)`` for them will return ``False``.
317 :class:`Awaitable`. See also the definition of :term:`coroutine`.
/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/pigweed/pw_console/py/pw_console/
Drepl_pane.py24 Awaitable,
86 stdout_check_task: Optional[Awaitable] = None
/external/python/cpython3/Lib/
D_collections_abc.py105 class Awaitable(metaclass=ABCMeta): class
115 if cls is Awaitable:
122 class Coroutine(Awaitable):
Dtyping.py2093 Awaitable = _alias(collections.abc.Awaitable, 1) variable
/external/python/typing/typing_extensions/
DREADME.rst95 - ``Awaitable``
D__init__.py431 Awaitable = typing.Awaitable variable
/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
/external/python/typing/typing_extensions/src/
Dtyping_extensions.py259 Awaitable = typing.Awaitable variable
Dtest_typing_extensions.py23 from typing_extensions import Awaitable, AsyncIterator, AsyncContextManager, Required, NotRequired
446 class AwaitableWrapper(Awaitable[T_a]):
718 self.assertIsInstance(g, typing_extensions.Awaitable)
719 self.assertNotIsInstance(foo, typing_extensions.Awaitable)
/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py360 Awaitable = typing.Awaitable variable

12