create
Deprecated: Use new Observable() instead
new Observable() insteadnew Observable(subscribe: (observer: Observer) => TeardownLogic)💡 Tips
Why use a custom observable?
Examples
Example 1: Simple custom observable that emits multiple values
Example 2: Observable with proper cleanup
Example 3: Wrapping a callback-based API
Example 4: Creating an observable from a WebSocket
Related Recipes
Additional Resources
Last updated