Home
last modified time | relevance | path

Searched refs:AsyncIterator (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/
D_collections_abc.py164 return AsyncIterator()
173 class AsyncIterator(AsyncIterable): class
187 if cls is AsyncIterator:
192 class AsyncGenerator(AsyncIterator):
Dtyping.py1197 AsyncIterator = _alias(collections.abc.AsyncIterator, T_co) variable
/external/python/cpython3/Doc/library/
Dcollections.abc.rst95 :class:`AsyncIterator` :class:`AsyncIterable` ``__anext__`` ``__aiter__``
96 :class:`AsyncGenerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``…
225 .. class:: AsyncIterator
Dtyping.rst668 .. 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/
Dtest_collections.py22 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)
Dtest_typing.py1954 self.assertIsInstance(it, typing.AsyncIterator)
1955 self.assertNotIsInstance(42, typing.AsyncIterator)
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b1.rst694 Add AsyncIterator and AsyncIterable ABCs to collections.abc. Contributed by
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.rst949 :class:`~collections.abc.AsyncIterator`, and