MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _callAsync

Method _callAsync

test/__init__.py:887–889  ·  view source on GitHub ↗
(self, func, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

885 self._callMaybeAsync(function, *args, **kwargs)
886
887 def _callAsync(self, func, /, *args, **kwargs):
888 assert inspect.iscoroutinefunction(func), f"{func!r} is not an async function"
889 return get_loop().run_until_complete(func(*args, **kwargs))
890
891 def _callMaybeAsync(self, func, /, *args, **kwargs):
892 if inspect.iscoroutinefunction(func):

Callers 2

_callSetUpMethod · 0.95
_callTearDownMethod · 0.95

Calls 1

get_loopFunction · 0.70

Tested by

no test coverage detected