We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.emitter.on('notification', async msg => await this.onNotification(msg));
Can I just do:
this.emitter.on('notification', this.onNotification);
I'm not sure what benefit the async offers?
async
The text was updated successfully, but these errors were encountered:
+1. Also, does this library support await for event handlers? As I understand, for now it just causes promise loose.
Sorry, something went wrong.
Also, why should it be defined inside onModuleInit and not just inside the constructor?
onModuleInit
No branches or pull requests
Can I just do:
I'm not sure what benefit the
async
offers?The text was updated successfully, but these errors were encountered: