MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / _is_valid_loop

Method _is_valid_loop

acouchbase/__init__.py:49–57  ·  view source on GitHub ↗
(evloop: asyncio.AbstractEventLoop)

Source from the content-addressed store, hash-verified

47
48 @staticmethod
49 def _is_valid_loop(evloop: asyncio.AbstractEventLoop) -> bool:
50 if not evloop:
51 return False
52 for meth in LoopValidator.REQUIRED_METHODS:
53 abs_meth, actual_meth = (
54 getattr(asyncio.AbstractEventLoop, meth), getattr(evloop.__class__, meth))
55 if abs_meth == actual_meth:
56 return False
57 return True
58
59 @staticmethod
60 def get_event_loop(evloop: asyncio.AbstractEventLoop) -> asyncio.AbstractEventLoop:

Callers 2

_get_working_loopMethod · 0.80
get_event_loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected