Allow threads to fire events on all threads (including themselves)
//From within a map thread
process.send({
module: 'atlas',
method: 'fireEventOnAllThreads',
msg: {
event: 'eventName',
data: {
a: 10
}
}
});
//From within a map thread
process.send({
module: 'atlas',
method: 'fireEventOnAllThreads',
msg: {
event: 'eventName',
data: {
a: 10
}
}
});