Content-Length: 202042 | pFad | http://github.com/w3c/push-api/issues/378

24 unsubscribe() method interaction with event loop · Issue #378 · w3c/push-api · GitHub
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

unsubscribe() method interaction with event loop #378

Open
annevk opened this issue Jul 8, 2024 · 1 comment
Open

unsubscribe() method interaction with event loop #378

annevk opened this issue Jul 8, 2024 · 1 comment

Comments

@annevk
Copy link
Member

annevk commented Jul 8, 2024

Reading https://w3c.github.io/push-api/#dom-pushsubscription-unsubscribe it's rather unclear to me what is supposed to happen on the main thread and what happens in parallel. In fact, it almost seems like this could have been a synchronous method from the perspective of the caller?

@saschanaz
Copy link
Member

I think it's reasonable to make it async to make sure the unsubscribe request is passed to the backend server. But then it doesn't say anything about the failure case, e.g. throw error or return false?

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

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/w3c/push-api/issues/378

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy