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

Unsubscribing a sample #1042

Open
dsebastian opened this issue Jan 26, 2024 · 1 comment
Open

Unsubscribing a sample #1042

dsebastian opened this issue Jan 26, 2024 · 1 comment
Labels
question Further information is requested

Comments

@dsebastian
Copy link

Hi,

First of all, great library, thanks for your work.

My question, as I'm switching some code from event watchers to using the recommended sample function, is how to unsubscribe? With the watchers on events it was easy as you have that return that you can call, but I haven't seen the equivalent for sample.

Thanks.

@dsebastian dsebastian added the question Further information is requested label Jan 26, 2024
@victordidenko
Copy link
Contributor

Well, it depends.
In short, you don't unsubscribe a sample, you subscribes to and unsubscribes from some events source.
For example, you can check source code of @withease/web-api package, it handles subscriptions and unsubscriptions for some Web API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants