rxjs-wait-next

June 14, 2023 ยท View on GitHub

Wait RxJS Subject.next emition for all subscribers

How it works

rxjs-wait-next listens all subscriptions emissions
When all emissions happens, it's resolved
Some operators, like filter, may interfere to emissions happens and need to use manual emission in this case via resolveSubscription

Examples

See https://github.com/darky/rxjs-wait-next/blob/master/test.ts

Limitation

  • Works on Node.js only, it's uses AsyncLocalStorage

Contents

  1. 1How it works
  2. 2Examples
  3. 3Limitation