标签: python-3.x python-asyncio
module.py
queue = asyncio.Queue async def foo() while True: val = await queue.get() someprocessing(val) def bar(val) queue.put_no_wait(val)
我想从模块外部调用bar方法,并异步处理获得的值。我还需要什么其他初始化?