Type alias MessageHandler<Msg, Opts>

MessageHandler<Msg, Opts>: ((message, options?) => MaybePromise<void>)

Type Parameters

  • Msg

  • Opts = object

Type declaration

    • (message, options?): MaybePromise<void>
    • Message handler function. Depending on message bus implementation, throwing an exception may cause the message to be retried.

      Parameters

      Returns MaybePromise<void>

Generated using TypeDoc