getify / revocable-queue

Specialized async queue data structure, supports revocation of values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add `lazyMerge(..)` to complement `lazyZip(..)`

getify opened this issue · comments

lazyZip(..) currently works like this:

for await (let [q1NextVal,q2NextVal,q3NextVal] of RevocableQueue.lazyZip(q1,q2,q3)) {
   // ..
}

To complement this helper, add lazyMerge(..):

for await (let nextVal of RevocableQueue.lazyMerge(q1,q2,q3)) {
   // ..
}