Open elytz opened 6 years ago
eventEmitter.on('test2', function * () { return false }); var result2 = yield eventEmitter.emit('test2'); console.log('Result ------', result2) // Prints: Result ------ []
If there is more listener -> it returns the previous value
If there is more listener -> it returns the previous value