lifecycle-utils
    Preparing search index...

    Type Alias AbortablePromiseExecutor<T>

    AbortablePromiseExecutor: (
        resolve: (value: T | PromiseLike<T>) => void,
        reject: (reason?: any) => void,
    ) => void | AbortablePromiseCleanup

    Executor used to initialize a AbortablePromise.

    May return a cleanup callback that is invoked after resolve or reject is called, or when the associated signal aborts the promise

    Type Parameters

    • T

    Type Declaration