-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rstream): add .transform() error handler opt (#276)
BREAKING CHANGE: update ISubscribable contract, remove transducer only version of `.subscribe()`, MUST provide dummy sub w/ transducer OR (better) use `.transform()` instead (which also more clearly communicates intention...) - another breaking change side effect for `.subscribe()`: `next()` handlers MUST be provided now in first arg (child sub), this is NOT because they're mandatory now, but TS won't be able to correctly infer arg types when using `Partial<ISubscriber<T>>` - add `DUMMY` subscriber constant w/ empty `next() {}` - simplify internal `.subscribe()` logic - add `WithErrorHandlerOpts` interface - update `.transform()` & `.map()`: add error handling support
- Loading branch information
1 parent
594d806
commit 22c6f7c
Showing
3 changed files
with
56 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters