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

Get rid of UNSUBSCRIBE_EXCEPTION #528

Open
adamvy-google opened this issue Jan 13, 2016 · 3 comments
Open

Get rid of UNSUBSCRIBE_EXCEPTION #528

adamvy-google opened this issue Jan 13, 2016 · 3 comments
Milestone

Comments

@adamvy-google
Copy link
Member

Use some programatic means of unsubscribing.

@adamvy-google adamvy-google added this to the foam2.0 milestone Jan 13, 2016
@kgrgreer
Copy link
Contributor

Pass subscription or subscription destructor as extra argument to listeners so that they can easily unsubscribe without throwing an Exception. Will avoid the use of non-error Exceptions and will be faster because try/catch blocks disable V8 JIT.

@bshepherdson
Copy link
Contributor

Isn't it only finally that destroys optimizations? In any case, we should do this.

@kgrgreer
Copy link
Contributor

No, try/catch is sufficient: http://www.html5rocks.com/en/tutorials/speed/v8/

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

3 participants