pep-0492: Glossary: Future-like.__await__ must return an iterator
This commit is contained in:
parent
587d39deab
commit
235a1e7f01
10
pep-0492.txt
10
pep-0492.txt
|
@ -497,11 +497,11 @@ Glossary
|
||||||
details.
|
details.
|
||||||
|
|
||||||
:Future-like object:
|
:Future-like object:
|
||||||
An object with an ``__await__`` method. Can be consumed by an
|
An object with an ``__await__`` method returning an iterator. Can
|
||||||
``await`` expression in a coroutine. A coroutine waiting for a
|
be consumed by an ``await`` expression in a coroutine. A coroutine
|
||||||
Future-like object is suspended until the Future-like object's
|
waiting for a Future-like object is suspended until the Future-like
|
||||||
``__await__`` completes, and returns the result. See `Await
|
object's ``__await__`` completes, and returns the result. See
|
||||||
Expression`_ for details.
|
`Await Expression`_ for details.
|
||||||
|
|
||||||
:Awaitable:
|
:Awaitable:
|
||||||
A *Future-like* object or a *coroutine object*. See `Await
|
A *Future-like* object or a *coroutine object*. See `Await
|
||||||
|
|
Loading…
Reference in New Issue