Events

Events are non-extensible, script-only accessible un-managed objects that can trigger events and notifications delayed or on a recurring schedule. When fired, events move into the processing state, and then into the completed or failed state once handled.

const { on } = require('decorators')                          

class Events {           

  @on('ns__test')
  static nsTest(param, runtime) {
    // runtime.source === 'event' when fried from an event instance
  }
}

Last updated