Logos DX
    Preparing search index...

    Interface WithTimeoutOptions

    interface WithTimeoutOptions {
        abortController?: AbortController;
        onError?: (error: Error, didTimeout: boolean) => void;
        onTimeout?: (error: TimeoutError) => void;
        throws?: boolean;
        timeout: number;
    }
    Index

    Properties

    abortController?: AbortController

    Abort controller to cancel the operation

    onError?: (error: Error, didTimeout: boolean) => void

    Capture errors

    onTimeout?: (error: TimeoutError) => void

    On timeout callback

    throws?: boolean

    Rethrow errors

    timeout: number

    Timeout in milliseconds after which the function will be rejected