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

Method run_in_executor

python/python3/tornado/platform/asyncio.py:271–277  ·  view source on GitHub ↗
(
        self,
        executor: Optional[concurrent.futures.Executor],
        func: Callable[..., _T],
        *args: Any,
    )

Source from the content-addressed store, hash-verified

269 pass
270
271 def run_in_executor(
272 self,
273 executor: Optional[concurrent.futures.Executor],
274 func: Callable[..., _T],
275 *args: Any,
276 ) -> Awaitable[_T]:
277 return self.asyncio_loop.run_in_executor(executor, func, *args)
278
279 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:
280 return self.asyncio_loop.set_default_executor(executor)

Callers 7

test_asyncio_futureMethod · 0.45
fMethod · 0.45
innerMethod · 0.45
test_init_close_raceMethod · 0.45
async_wrapperMethod · 0.45

Calls

no outgoing calls

Tested by 7

test_asyncio_futureMethod · 0.36
fMethod · 0.36
innerMethod · 0.36
test_init_close_raceMethod · 0.36
async_wrapperMethod · 0.36