I have a set of blocking C-based functions. I am trying to find a way to make async calls to those blocking functions from python. Is there a way to do this from a python interface?
for example
async def my_func():
ffi.blocking_c_function() # this will be blocking for seconds or even mins
This blocking function may take seconds or minutes before it finishes. How would be the behaviour of the above async python func?
I would appreciate any advice