Ask a question to get started
Enter to send•Shift+Enter new line
Run a function in an executor.
run_in_executor( executor_or_config: Executor | RunnableConfig | None, func: Callable[P, T], *args: P.args = (), **kwargs: P.kwargs = {} ) -> T
executor_or_config
Executor | RunnableConfig | None
The executor or config to run in.
func
Callable[P, T]
The function.
*args
P.args
()
The positional arguments to the function.
**kwargs
P.kwargs
{}
The keyword arguments to the function.