Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Unsubscribe type to clients of ts-event-bus #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jomi-se
Copy link

@jomi-se jomi-se commented Oct 6, 2021

This type is already public for clients given that it is returned by
Slot.on() so it should be available to them directly.

This allows me as a client to redeclare a SubType for Slot<T> where .on() always expects a Promise instead of also accepting a value that is returned synchronously. This allows me to have an event bus were it is less likely for a handler to "forget" to reply after handling an event.

This type is already public for clients given that it is returned by
Slot<T>.on() so it should be available to them directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant