Await `result` if it is the coroutine of an async thread's `send()` or `parse()`, which runs nothing until then.
(result: object)
| 2265 | |
| 2266 | |
| 2267 | def finish(result: object) -> None: |
| 2268 | """Await `result` if it is the coroutine of an async thread's `send()` or `parse()`, which runs nothing until then.""" |
| 2269 | if inspect.iscoroutine(result): |
| 2270 | asyncio.run(result) |
no test coverage detected