bunqueue v2.9 API referenceall versions · guide
bunqueue
    Preparing search index...

    Interface SendOptions

    Per-command options for TcpClient.send and TcpConnectionPool.send.

    interface SendOptions {
        timeout?: number;
    }
    Index
    timeout?: number

    Timeout for this command in ms, replacing the connection's commandTimeout. Long-poll commands such as WaitJob, which the broker holds on purpose, use it so that the hold is not reported as a timeout. Only a positive finite value applies (any length, above 2^31 - 1 ms included); anything else keeps the default.