Check for a Future. This returns True when obj is a Future instance or is advertising itself as duck-type compatible by setting _asyncio_future_blocking. See comment in Future for more details.
(obj)
| 11 | |
| 12 | |
| 13 | def isfuture(obj): |
| 14 | """Check for a Future. |
| 15 | |
| 16 | This returns True when obj is a Future instance or is advertising |
| 17 | itself as duck-type compatible by setting _asyncio_future_blocking. |
| 18 | See comment in Future for more details. |
| 19 | """ |
| 20 | return (hasattr(obj.__class__, '_asyncio_future_blocking') and |
| 21 | obj._asyncio_future_blocking is not None) |
| 22 | |
| 23 | |
| 24 | def _format_callbacks(cb): |
no outgoing calls
no test coverage detected
searching dependent graphs…