Searched refs:AsyncGenerator (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/ |
D | _collections_abc.py | 192 class AsyncGenerator(AsyncIterator): class 234 if cls is AsyncGenerator: 240 AsyncGenerator.register(async_generator)
|
D | typing.py | 1249 AsyncGenerator = _alias(collections.abc.AsyncGenerator, (T_co, T_contra)) variable
|
/external/python/cpython3/Lib/test/ |
D | test_collections.py | 22 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):
|
D | test_typing.py | 2197 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/ |
D | collections.abc.rst | 96 :class:`AsyncGenerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``… 232 .. class:: AsyncGenerator
|
D | typing.rst | 750 .. 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/ |
D | 3.6.0b4.rst | 270 Add collections.abc.AsyncGenerator.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 931 The new :class:`~collections.abc.AsyncGenerator` abstract base class represents
|