I\'m trying to convert a synchronous library to use an internal asynchronous IO framework. I have several methods that look like this:
def foo: .... sync_cal
There are several way for multiplexing tasks. We can't say what is the best for your case without deeper knowledge on what you are doing. Probably the most easiest/universal way is to use threads. Take a look at this question for some ideas.