(coroutine)
| 69 | ) |
| 70 | |
| 71 | def run_coroutine(coroutine): |
| 72 | if not thread.is_alive(): |
| 73 | thread.start() |
| 74 | future = asyncio.run_coroutine_threadsafe(coroutine, tmp_event_loop) |
| 75 | return future.result() |
| 76 | |
| 77 | async def stop_loop(): |
| 78 | tmp_event_loop.stop() |
no test coverage detected