It will turn an async iterator into an asynchronous iterator that will always return the
last known value, while waiting for the promise on the incoming iterator to resolve.
Every value on the incoming iterator will be returned at least once in order to keep
the operator 'passive'. This operator will not actively drain the incoming iterator.
Example
// input iterator constit = itr8.itr8Pushable<string>(); // output iterator that will always return the mostRecent value of the input iterator constitOut = pipe(it, mostRecent('My initial value'));
Probably only useful on async iterators.
It will turn an async iterator into an asynchronous iterator that will always return the last known value, while waiting for the promise on the incoming iterator to resolve.
Every value on the incoming iterator will be returned at least once in order to keep the operator 'passive'. This operator will not actively drain the incoming iterator.
Example