Home
last modified time | relevance | path

Searched refs:AsyncGenerator (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Lib/
D_collections_abc.py192 class AsyncGenerator(AsyncIterator): class
234 if cls is AsyncGenerator:
240 AsyncGenerator.register(async_generator)
Dtyping.py1249 AsyncGenerator = _alias(collections.abc.AsyncGenerator, (T_co, T_contra)) variable
/external/python/cpython3/Lib/test/
Dtest_collections.py22 from collections.abc import AsyncIterator, AsyncIterable, AsyncGenerator
1075 self.assertNotIsInstance(x, AsyncGenerator)
1076 self.assertFalse(issubclass(type(x), AsyncGenerator), repr(type(x)))
1085 class MinimalAGen(AsyncGenerator):
1097 self.assertIsInstance(x, AsyncGenerator)
1098 self.assertTrue(issubclass(type(x), AsyncGenerator), repr(type(x)))
1099 self.validate_abstract_methods(AsyncGenerator, 'asend', 'athrow')
1120 class FailOnClose(AsyncGenerator):
1127 class IgnoreGeneratorExit(AsyncGenerator):
Dtest_typing.py2197 self.assertIsSubclass(type(g), typing.AsyncGenerator)
2201 typing.AsyncGenerator()
2203 typing.AsyncGenerator[T, T]()
2205 typing.AsyncGenerator[int, int]()
2277 class G(typing.AsyncGenerator[int, int]):
2286 self.assertIsSubclass(G, typing.AsyncGenerator)
2288 self.assertIsSubclass(G, collections.abc.AsyncGenerator)
2293 self.assertIsInstance(instance, typing.AsyncGenerator)
2295 self.assertIsInstance(instance, collections.abc.AsyncGenerator)
/external/python/cpython3/Doc/library/
Dcollections.abc.rst96 :class:`AsyncGenerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``…
232 .. class:: AsyncGenerator
Dtyping.rst750 .. class:: AsyncGenerator(AsyncIterator[T_co], Generic[T_co, T_contra])
753 ``AsyncGenerator[YieldType, SendType]``. For example::
755 async def echo_round() -> AsyncGenerator[int, float]:
768 async def infinite_stream(start: int) -> AsyncGenerator[int, None]:
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b4.rst270 Add collections.abc.AsyncGenerator.
/external/python/cpython3/Doc/whatsnew/
D3.6.rst931 The new :class:`~collections.abc.AsyncGenerator` abstract base class represents