MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / run

Function run

openhands/app_server/utils/async_utils.py:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 return result
36
37 def run():
38 loop_for_thread = asyncio.new_event_loop()
39 try:
40 asyncio.set_event_loop(loop_for_thread)
41 return asyncio.run(arun())
42 finally:
43 loop_for_thread.close()
44
45 if getattr(EXECUTOR, '_shutdown', False):
46 result = run()

Callers 1

call_async_from_syncFunction · 0.70

Calls 2

arunFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected