async_to_sync

Contents

async_to_sync#

tierkreis.client.server_client.async_to_sync(func: Callable[[...], Coroutine[None, None, CallableReturn]]) Callable[[...], CallableReturn][source]#

Converts an asynchronous function into a synchronous one by running it on a new async event loop in a newly created thread.