MCPcopy Create free account
hub / github.com/tox-dev/filelock / _submit

Method _submit

src/filelock/_async_read_write.py:281–288  ·  view source on GitHub ↗
(
        self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs
    )

Source from the content-addressed store, hash-verified

279 return _future_result(future)
280
281 def _submit(
282 self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs
283 ) -> asyncio.Future[_BackendOutcome[_R]]:
284 return (self._loop or asyncio.get_running_loop()).run_in_executor(
285 self._executor,
286 _capture_call,
287 functools.partial(func, *args, **kwargs),
288 )
289
290 def _shutdown_owned_executor(self) -> None:
291 if self._owns_executor:

Callers 3

closeMethod · 0.95
_run_acquireMethod · 0.95
_runMethod · 0.95

Calls 1

run_in_executorMethod · 0.80

Tested by

no test coverage detected