Sync
Module:
pyot.utils.sync
func
:Callable[..., Awaitable[~R]]
Wrapsasyncio.run
on an async function converting it into a blocking function. Can be used as decorator @async_to_sync
func
:Callable[..., ~R]
Wrapsasyncio.get_event_loop().run_in_executor
on a blocking function converting it into a Future. Can be used as decorator @sync_to_async
Last modified 1yr ago