I have the following code
async def foo():
some_tuple = tuple(map(bar, some_tuple))
async def bar(data):
# Await another function and do some other stuff
return something
Since bar
is async it must be awaited. However, I am unsure where to await bar
. I tried awaiting it inside map
, I tried awaiting map
, I tried awaiting tuple
and nothing worked.
How do I await bar
inside map
?