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.
|
||||
|
||||
:Future-like object:
|
||||
An object with an ``__await__`` method. Can be consumed by an
|
||||
``await`` expression in a coroutine. A coroutine waiting for a
|
||||
Future-like object is suspended until the Future-like object's
|
||||
``__await__`` completes, and returns the result. See `Await
|
||||
Expression`_ for details.
|
||||
An object with an ``__await__`` method returning an iterator. Can
|
||||
be consumed by an ``await`` expression in a coroutine. A coroutine
|
||||
waiting for a Future-like object is suspended until the Future-like
|
||||
object's ``__await__`` completes, and returns the result. See
|
||||
`Await Expression`_ for details.
|
||||
|
||||
:Awaitable:
|
||||
A *Future-like* object or a *coroutine object*. See `Await
|
||||
|
|
Loading…
Reference in New Issue