MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / run_coro

Method run_coro

src/bonsai/bonsai/tool/web.py:925–933  ·  view source on GitHub ↗

Run a coroutine in the asyncio event loop from a separate thread. :param coro: The coroutine to be run. :return: The result of the coroutine.

(self, coro)

Source from the content-addressed store, hash-verified

923 self.loop.run_forever()
924
925 def run_coro(self, coro) -> Any:
926 """
927 Run a coroutine in the asyncio event loop from a separate thread.
928
929 :param coro: The coroutine to be run.
930
931 :return: The result of the coroutine.
932 """
933 return asyncio.run_coroutine_threadsafe(coro, loop=self.loop).result()
934
935 def stop(self) -> None:
936 """

Callers 3

send_webui_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected