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
@OnEvent(TicketEventEnum.UPDATE, { async: true }) async test() { console.error('test'); }
eventemitter.js
if (promisify === undefined) { promisify = listener.constructor.name === 'AsyncFunction'; }
promisify is false。listener is ticket.update (...args) => instance[methodKey].call(instance, ...args) the .constructor.name === 'Function';
https://github.com/nestjs/event-emitter/blob/master/lib/event-subscribers.loader.ts#L95
this can cause emitAsync.catch not working !
No response
listener constructor name is AsyncFunction
9.4
16
The text was updated successfully, but these errors were encountered:
Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project).
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Current behavior
listenerFunction
eventemitter2
eventemitter.js
the result
promisify is false。listener is ticket.update (...args) => instance[methodKey].call(instance, ...args)
the .constructor.name === 'Function';
the problem reason
https://github.com/nestjs/event-emitter/blob/master/lib/event-subscribers.loader.ts#L95
this can cause emitAsync.catch not working !
Minimum reproduction code
https://github.com/nestjs/event-emitter/blob/master/lib/event-subscribers.loader.ts#L95
Steps to reproduce
No response
Expected behavior
listener constructor name is AsyncFunction
Package version
9.4
NestJS version
9.4
Node.js version
16
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: