pep-0492: Glossary: Future-like.__await__ must return an iterator

This commit is contained in:
Yury Selivanov 2015-04-23 15:59:16 -04:00
parent 587d39deab
commit 235a1e7f01
1 changed files with 5 additions and 5 deletions

View File

@ -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