sequenceSeq<A> function
Returns a task the flattens an Iterable of Task's, into a list of results.
The tasks are run sequentially - one after the other.
expect(
await [fromThunk(() => 'one'), fromThunk(() => 'two')]
.chain(sequenceSeq)(),
['one', 'two'],
);
Implementation
Task<IList<A>> sequenceSeq<A>(Iterable<Task<A>> tasks) =>
tasks.chain(traverseIterableSeq(identity));