MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / close_loop

Method close_loop

acouchbase/__init__.py:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65 @staticmethod
66 def close_loop() -> None:
67 try:
68 evloop = asyncio.get_event_loop()
69 if not evloop.is_closed():
70 evloop.close()
71 except RuntimeError:
72 # If there is no loop to get, there is no loop to close.
73 pass # nosec
74
75
76def couchbase_loop_factory() -> asyncio.AbstractEventLoop:

Callers

nothing calls this directly

Calls 2

get_event_loopMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected