• Guido van Rossum's avatar
    Rename Future._blocking to _asyncio_future_blocking. · 1140a034
    Guido van Rossum authored
    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.
    1140a034
tasks.py 25 KB