Unordered Async Iterator Helpers for Stage 1
Michael Ficarra • July 2024
background & motivation
iterator helpers
async iterator helpers
unordered async�iterator helpers
(this proposal)
concurrency control
dropping ordering constraint improves throughput
the proposal
Iterator� .prototype
AsyncIterator
.prototype
UnorderedAsyncIterator� .prototype
example
someAsyncIterator� .unordered()� .map(...)� .filter(...)� .take(...)� .toArray(..., governor)
what does Stage 1 mean for this proposal?
NOTE: Because unordered helpers provide no advantage in the absence of concurrent calls to .next(), the iterator-consuming methods in this proposal (.some(), .forEach(), etc) will depend on the Concurrency Control proposal.
Stage 1?
open design questions (if we have time)