0no-co / wonka

🎩 A tiny but capable push & pull stream library for TypeScript and Flow
MIT License
709 stars 29 forks source link

feat: Completely fulfill the Observable spec in toObservable #132

Closed kitten closed 1 year ago

kitten commented 1 year ago

The Observable spec should be completely fulfilled in the implementation of toObservable.

Specifically, the subscribe function must accept subscribe(onNext, onError, onComplete in its implementation, rather than just subscribe(observer)