Fails to deliver topic to all subscribers if one throws (v3.5.0)
georapbox opened this issue · 0 comments
georapbox commented
Consider the following example:
const pubsub = PubSub();
pubsub.subscribe('MY_TOPIC', () => {
throw new Error('Oooops!!!');
});
pubsub.subscribe('MY_TOPIC', data => {
console.log('Won\'t enter here');
});
pubsub.publish('MY_TOPIC');
If first subscriber throws, then PubSub fails to deliver the topic to the second subscriber.