kinetex - v1.0.0-rc.1
    Preparing search index...

    Function sendWithTimeout

    • Wrap a transport with a per-request timeout. Works by racing the transport promise against a timeout promise.

      Parameters

      • transport: Transport

        Transport to wrap

      • request: KinetexRequest

        Request to send

      • timeoutMs: number

        Timeout in milliseconds (<=0 disables timeout)

      Returns Promise<RawResponse>

      Raw response from the server

      If the request exceeds the timeout