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