MCPcopy
hub / github.com/tornadoweb/tornado / run_in_executor

Method run_in_executor

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

Source from the content-addressed store, hash-verified

264 pass
265
266 def run_in_executor(
267 self,
268 executor: Optional[concurrent.futures.Executor],
269 func: Callable[..., _T],
270 *args: Any,
271 ) -> "asyncio.Future[_T]":
272 return self.asyncio_loop.run_in_executor(executor, func, *args)
273
274 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:
275 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