You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick update: I did find a workaround with .flat() but it's kinda gnarly.
seq.flat(asyncfunction*(x){yieldawaitf(x)})
Surely seq.map(f) would be way nicer.
And this workaround is especially unpleasant if f needs to access this, as one can't use an arrow function to create a generator.
EDIT: and unfortunately, the overload for .flat() that takes a transformation returns a plain AsyncIterable and not an AsyncIterableQuery, so I can't continue to chain itiriri methods together after using the workaround without wrapping up with itiririAsync again.
The type of
.map()
isbut I would have expected
allowing the transformation of each element to be asynchronous.
Maybe there's a way to pull this off using
.flat()
but I can't seem to make it work. Any ideas?The text was updated successfully, but these errors were encountered: