Add `Promise.Each` to process operations as they complete
timcassell opened this issue · comments
Similar to new Task.WhenEach.
TPL uses WhenAll
WhenAny
WhenEach
APIs, while ProtoPromise uses All
Race
, so it follows to use Each
for this rather than WhenEach
.
Also, instead of returning IAsyncEnumerable<Task<T>>
, we can return AsyncEnumerable<Promise<T>.ResultContainer>
.