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

Function csot_wrapper

pymongo/_csot.py:109–115  ·  view source on GitHub ↗
(self: Any, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

107
108 @functools.wraps(func)
109 async def csot_wrapper(self: Any, *args: Any, **kwargs: Any) -> Any:
110 if get_timeout() is None:
111 timeout = self._timeout
112 if timeout is not None:
113 with _TimeoutContext(timeout):
114 return await func(self, *args, **kwargs)
115 return await func(self, *args, **kwargs)
116 else:
117
118 @functools.wraps(func)

Callers

nothing calls this directly

Calls 2

get_timeoutFunction · 0.85
_TimeoutContextClass · 0.85

Tested by

no test coverage detected