()
| 1014 | future = concurrent.futures.Future() |
| 1015 | |
| 1016 | def callback(): |
| 1017 | try: |
| 1018 | futures._chain_future(ensure_future(coro, loop=loop), future) |
| 1019 | except (SystemExit, KeyboardInterrupt): |
| 1020 | raise |
| 1021 | except BaseException as exc: |
| 1022 | if future.set_running_or_notify_cancel(): |
| 1023 | future.set_exception(exc) |
| 1024 | raise |
| 1025 | |
| 1026 | loop.call_soon_threadsafe(callback) |
| 1027 | return future |
no test coverage detected
searching dependent graphs…