Answer the question
In order to leave comments, you need to log in
Promises for EventEmmiter or callbacks?
// Какое-то событие
event.on('account:list', (user, account) => {
// Вызываем другое событие
event.emit('account:empty', msg)
});
// Вызываем событие
event.emit('account:list', msg)
console.log('done')
event.emit('account:list', msg).then(() => {
console.log('done')
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question