Add mapIntoIterable
function
#313
Closed
aleclarson
started this conversation in
Ideas
Replies: 1 comment
-
I ended up not using this, so it's probably not the right abstraction. Closing for now, but if you find value in this proposal, please speak up. 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is like Radashi's
map
function, but meant for use withfor…await
to allow handling of results as soon as possible. Unlikemap
, all items are processed in parallel, so perhaps a better name is needed. OncewithSemaphore
(#222) is introduced, you can easily limit how many items are processed at one time, if required.Example:
Proposed implementation
Beta Was this translation helpful? Give feedback.
All reactions