Python asynchronous callbacks and generators

前端 未结 3 1820
生来不讨喜
生来不讨喜 2021-02-04 12:13

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         


        
3条回答
  •  迷失自我
    2021-02-04 12:57

    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.

提交回复
热议问题