#fifo-queue

[ follow ]
JavaScript
fromAlex MacArthur
1 day ago

I used a generator to build a replenishable queue.

Use generators plus promises to implement a replenishable FIFO queue that stays alive and pauses when empty, resuming when new items arrive.
[ Load more ]