Difference between `AsyncIterable[T]` and `Iterable[Awaitable[T]]`?

后端 未结 0 1324
栀梦
栀梦 2021-01-03 14:10

Take these two following functions:

import asyncio

def a():
    for index in range(2):
        # Capture `index` as `local_index` in case awaiting is postpon         


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