nestjseventemitter

Explanation of event listeners marked as async


What exactly is the difference between event listeners marked with the OnEvent decorators that use async: true and the ones without it? Also what does promisify: true do? I couldn't find it on the Nestjs Events docs page. Thank you


Solution

  • Those options aren't from Nest, but from eventemitter2. Directly from their docs: