Skip to content

v0.0.5

Choose a tag to compare

@fedeAlterio fedeAlterio released this 15 Jan 17:13
· 70 commits to main since this release

Stateless Subjects

  • StatelessSubject - Forgets completion when all observers unsubscribe
  • StatelessBehaviorSubject - Resets to initial value when all observers unsubscribe

Multicasting Operators

  • Multicast - Share a single subscription using a custom subject
  • Publish - Convenient multicasting with Subject or BehaviorSubject
  • StatelessPublish - Multicasting with StatelessSubjects
  • RefCount - Auto-connect/disconnect based on subscriber count

####Others

  • Finally renamed OnDispose

Stateless subjects solve the common Publish().RefCount() gotcha where completed observables can't be reused (see this StackOverflow discussion). With stateless subjects, the observable automatically resets when all observers unsubscribe, making it truly reusable for multiple subscription cycles.