Uniform processing for normal and async iterables

后端 未结 0 1380
感情败类
感情败类 2021-02-09 19:58

I have a bunch of code with the same pattern:

def process(iterable):
    if inspect.isasyncgen(iterable):
        return process_async(iterable)
    else:
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题