Run an async function from a sync function in Python
In my Python application, I have a sync function boo()
that is called inside a running event loop. boo()
has to get some data from foo(arg1, arg2)
, which is an async function.
In my Python application, I have a sync function boo()
that is called inside a running event loop. boo()
has to get some data from foo(arg1, arg2)
, which is an async function.