Skip to content

Добавить коллбек working по типу ack и nack #134

@Sergey-Baranenkov

Description

@Sergey-Baranenkov

Сейчас в обработчик ивентов ивент залетает как { data, ack, nak }: { data: SomeEventType; ack: () => void; nak: (repeat: number) => void }. Предлагаю также прокидывать метод working() чтобы уведомлять nats о том что долгая операция еще выполняется (должен сбрасываться ackTime)

В библиотеки nats на js этот метод описан как:

/**
     * Indicate to the JetStream server that processing of the message
     * is on going, and that the ack wait timer for the message should be
     * reset preventing a redelivery.
     */
    working(): void;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions