Rename Future._blocking to _asyncio_future_blocking. · python/cpython@1140a03 · GitHub
Skip to content

Commit 1140a03

Browse files
committed
Rename Future._blocking to _asyncio_future_blocking.
This is now an official "protected" API that can be used to write classes that are duck-type-compatible with Future without subclassing it. (For that purpose I also changed isinstance(result, Future) to check for this attribute instead.) Hopefully Amber Brown can use this to make Twisted.Deferred compatible with asyncio.Future. Tests and docs are TBD.
1 parent c1db513 commit 1140a03

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

Lib/asyncio/futures.py

Lines changed: 10 additions & 2 deletions

Lib/asyncio/tasks.py

Lines changed: 4 additions & 3 deletions

0 commit comments

Comments
 (0)