Type alias ValueAck<T>

ValueAck<T>: [value: T, ack: ((isTaken) => void)]

The protocol provided to the AsyncQueue consumer, so it can acknowledge that the value was processed and should be removed from the queue.

Type Parameters

  • T

    The value taken from the queue.