Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(services): add extra features to EventPubSub Service
- `subscribe` now returns a Subscription that user can now optionally call `unsubscribe` directly instead of just `unsubscribeAll` - `unsubscribe` and `unsubscribeAll` should decrease the `subscribedEvents` array (it wasn't before, but now it does decrease it) - add Generics to `subscribe` for easier type inference on `data` argument - add optional GETTER/SETTER on the `elementSource`
- Loading branch information
1 parent
98aae2a
commit 9bd02b5
Showing
6 changed files
with
89 additions
and
23 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
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