Closed timcassell closed 2 weeks ago
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.
WhenAll
WhenAny
WhenEach
All
Race
Each
Also, instead of returning IAsyncEnumerable<Task<T>>, we can return AsyncEnumerable<Promise<T>.ResultContainer>.
IAsyncEnumerable<Task<T>>
AsyncEnumerable<Promise<T>.ResultContainer>
Similar to new Task.WhenEach.
TPL uses
WhenAll
WhenAny
WhenEach
APIs, while ProtoPromise usesAll
Race
, so it follows to useEach
for this rather thanWhenEach
.Also, instead of returning
IAsyncEnumerable<Task<T>>
, we can returnAsyncEnumerable<Promise<T>.ResultContainer>
.