When using EventEmitter is there a way to prevent subsequent handlers from being invoked?
up vote
0
down vote
favorite
Let's say I have multiple handlers to some event and want to intercept the whole queue and cancel it if the certain condition is met. Is it possible to do with NodeJS EventEmitter?
node.js eventemitter
add a comment |
up vote
0
down vote
favorite
Let's say I have multiple handlers to some event and want to intercept the whole queue and cancel it if the certain condition is met. Is it possible to do with NodeJS EventEmitter?
node.js eventemitter
1
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Let's say I have multiple handlers to some event and want to intercept the whole queue and cancel it if the certain condition is met. Is it possible to do with NodeJS EventEmitter?
node.js eventemitter
Let's say I have multiple handlers to some event and want to intercept the whole queue and cancel it if the certain condition is met. Is it possible to do with NodeJS EventEmitter?
node.js eventemitter
node.js eventemitter
asked Nov 7 at 6:14
jayarjo
5,765136296
5,765136296
1
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18
add a comment |
1
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18
1
1
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53184400%2fwhen-using-eventemitter-is-there-a-way-to-prevent-subsequent-handlers-from-being%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
What's your case exactly? EventEmitter likely has to be extended.
– estus
Nov 7 at 7:39
Yeah. I checked the source so basically there's no other way around.
– jayarjo
Nov 7 at 12:18