Skip to content

For the .on, do we need to specify that it's async?Β #30

@shamoons

Description

@shamoons
    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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions