阅读背景:

如何在异步协程中包装同步函数?

来源:互联网 

I'm using aiohttp to build an API server that sends TCP requests off to a seperate server. The module that sends the TCP requests is synchronous and a black box for my purposes. So my problem is that these requests are blocking the entire API. I need a way to wrap the module requests in an asynchronous coroutine that won't block the rest of the API. to build an API server that s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: