Convert a Tornado yieldable object to an `asyncio.Future`. .. versionadded:: 4.1 .. versionchanged:: 4.3 Now accepts any yieldable object, not just `tornado.concurrent.Future`. .. deprecated:: 5.0 Tornado ``Futures`` have been merged with `asyncio.Future`,
(tornado_future: asyncio.Future)
| 372 | |
| 373 | |
| 374 | def to_asyncio_future(tornado_future: asyncio.Future) -> asyncio.Future: |
| 375 | """Convert a Tornado yieldable object to an `asyncio.Future`. |
| 376 | |
| 377 | .. versionadded:: 4.1 |
| 378 | |
| 379 | .. versionchanged:: 4.3 |
| 380 | Now accepts any yieldable object, not just |
| 381 | `tornado.concurrent.Future`. |
| 382 | |
| 383 | .. deprecated:: 5.0 |
| 384 | Tornado ``Futures`` have been merged with `asyncio.Future`, |
| 385 | so this method is now equivalent to `tornado.gen.convert_yielded`. |
| 386 | """ |
| 387 | return convert_yielded(tornado_future) |
| 388 | |
| 389 | |
| 390 | _AnyThreadEventLoopPolicy = None |