A lightweight RxJS utility that enqueues observables and executes them sequentially. Current stable version is 1.0.18. The library is minimal and stable with infrequent updates. It queues observables and guarantees order of execution, with automatic queue clearing on error. Unlike custom solutions, it provides a simple, tested abstraction over RxJS schedulers.
npm install rxjs-observable-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, adds two delayed observables, and logs their results in order.
Handle errors in each subscription to avoid losing queued items.
Always call .subscribe() on the result of addItem.
Ensure rxjs@^6 is installed; for RxJS 7 check compatibility.
Use takeUntil or other operators inside the observable if cancellation is needed.
Use import { ObservableQueue } from 'rxjs-observable-queue'.Ensure queue is created with new ObservableQueue().
Check that queue.addItem returns an observable and subscribe to it.