Type alias ConsumeCallback

ConsumeCallback: {
    callback?: ConsumerCallbackFn;
}

Type declaration

  • Optional callback?: ConsumerCallbackFn

    Process messages using a callback instead of an iterator. Note that when using callbacks, the callback cannot be async. If you must use async functionality, process messages using an iterator.

Generated using TypeDoc