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

Return off/remove after on/add #12

Closed
lisez opened this issue May 25, 2024 · 0 comments · Fixed by #14
Closed

Return off/remove after on/add #12

lisez opened this issue May 25, 2024 · 0 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lisez
Copy link
Owner

lisez commented May 25, 2024

Such as the subscription pattern in svelte.

const unsub = sub();

Hence we can:

const off = emitter.on()
@lisez lisez added the enhancement New feature or request label May 25, 2024
@lisez lisez added this to the v0.6.0 milestone May 25, 2024
@lisez lisez linked a pull request May 26, 2024 that will close this issue
@lisez lisez closed this as completed in #14 May 26, 2024
@lisez lisez self-assigned this May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant