MCPcopy Create free account
hub / github.com/DataArcTech/DataArc-SynData-Toolkit / run_coroutine

Function run_coroutine

verl/utils/transferqueue_utils.py:71–75  ·  view source on GitHub ↗
(coroutine)

Source from the content-addressed store, hash-verified

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()

Callers 1

_run_async_in_temp_loopFunction · 0.70

Calls 1

startMethod · 0.45

Tested by

no test coverage detected