MCPcopy Create free account
hub / github.com/EasyIME/PIME / submit

Method submit

python/python3/tornado/concurrent.py:57–65  ·  view source on GitHub ↗
(
        self, fn: Callable[..., _T], *args: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

55
56class DummyExecutor(futures.Executor):
57 def submit(
58 self, fn: Callable[..., _T], *args: Any, **kwargs: Any
59 ) -> "futures.Future[_T]":
60 future = futures.Future() # type: futures.Future[_T]
61 try:
62 future_set_result_unless_cancelled(future, fn(*args, **kwargs))
63 except Exception:
64 future_set_exc_info(future, sys.exc_info())
65 return future
66
67 def shutdown(self, wait: bool = True) -> None:
68 pass

Callers 3

wrapperFunction · 0.45
run_in_executorMethod · 0.45
onImportPhraseFunction · 0.45

Calls 2

future_set_exc_infoFunction · 0.85

Tested by

no test coverage detected