Module rpu.async_.specific

Functions

async def run_in_executor(function, *args, **kwargs) ‑> Any

|coro|

Runs the given function in a sync executor

Parameters

function
The sync function to be executed
*args
Any positional args to be passed to the function
**kwargs
any kwargs to be passed to the function

Returns

Any
Whatever the given function returns