Searched refs:AsyncIterator (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/ |
D | _collections_abc.py | 164 return AsyncIterator() 173 class AsyncIterator(AsyncIterable): class 187 if cls is AsyncIterator: 192 class AsyncGenerator(AsyncIterator):
|
D | typing.py | 1197 AsyncIterator = _alias(collections.abc.AsyncIterator, T_co) variable
|
/external/python/cpython3/Doc/library/ |
D | collections.abc.rst | 95 :class:`AsyncIterator` :class:`AsyncIterable` ``__anext__`` ``__aiter__`` 96 :class:`AsyncGenerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``… 225 .. class:: AsyncIterator
|
D | typing.rst | 668 .. class:: AsyncIterator(AsyncIterable[T_co]) 670 A generic version of :class:`collections.abc.AsyncIterator`. 750 .. class:: AsyncGenerator(AsyncIterator[T_co], Generic[T_co, T_contra]) 774 either ``AsyncIterable[YieldType]`` or ``AsyncIterator[YieldType]``:: 776 async def infinite_stream(start: int) -> AsyncIterator[int]:
|
/external/python/cpython3/Lib/test/ |
D | test_collections.py | 22 from collections.abc import AsyncIterator, AsyncIterable, AsyncGenerator 763 self.assertTrue(isinstance(AI(), AsyncIterator)) 764 self.assertTrue(issubclass(AI, AsyncIterator)) 768 self.assertNotIsInstance(x, AsyncIterator) 769 self.assertFalse(issubclass(type(x), AsyncIterator), repr(type(x))) 774 self.assertNotIsInstance(AnextOnly(), AsyncIterator) 775 self.validate_abstract_methods(AsyncIterator, '__anext__', '__aiter__') 1096 self.assertIsInstance(x, AsyncIterator)
|
D | test_typing.py | 1954 self.assertIsInstance(it, typing.AsyncIterator) 1955 self.assertNotIsInstance(42, typing.AsyncIterator)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0b1.rst | 694 Add AsyncIterator and AsyncIterable ABCs to collections.abc. Contributed by
|
D | 3.6.0a2.rst | 271 Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been
|
D | 3.5.2rc1.rst | 426 Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 949 :class:`~collections.abc.AsyncIterator`, and
|