You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't support you'd be interested in working on a version that supports returning a Promise (I'm happy to help if you are)? For example:
events.on('test',function(e){// The next event listener will wait til this is donereturnnewPromise((resolve)=>{setTimeout(resolve,1000);});});// Then eitherevents.emit('test',{data: 'data'}).catch(err=>console.log('Oops:',err));// Ortry{awaitevents.emit('test',{data: 'data'});}catch(err){console.log('Oops:',err)}
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I don't support you'd be interested in working on a version that supports returning a Promise (I'm happy to help if you are)? For example:
Thanks in advance.
The text was updated successfully, but these errors were encountered: