Vertex Viewer SDK
    Preparing search index...

    Function abort

    • Returns a promise that either resolves with the result of promise, or a value that indicates the execution was aborted.

      Note: Because Promises in JS cannot be canceled, an abort signal will not cancel the execution of the promise.

      Type Parameters

      • T

      Parameters

      • signal: AbortSignal

        A signal that communicates the process should be aborted.

      • promise: Promise<T>

        A promise who's value will be returned if not aborted.

      Returns Promise<{ aborted: true } | { aborted: false; result: T }>

      A value indicating if the process was aborted, or the value of promise.