MCPcopy
hub / github.com/IBM/AssetOpsBench / __init__

Method __init__

src/mcphub/__init__.py:74–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 """
73
74 def __init__(self):
75 self._loop = asyncio.new_event_loop()
76 threading.Thread(target=self._loop.run_forever, daemon=True).start()
77 self._queue: asyncio.Queue = self._call(asyncio.Queue)
78 asyncio.run_coroutine_threadsafe(self._run(), self._loop)
79
80 def _call(self, fn):
81 fut: concurrent.futures.Future = concurrent.futures.Future()

Callers

nothing calls this directly

Calls 2

_callMethod · 0.95
_runMethod · 0.95

Tested by

no test coverage detected