@oazmi/kitchensink - v0.10.1
    Preparing search index...

    Variable promiseOutsideConst

    promiseOutside: <T>() => [
        promise: Promise<T>,
        resolve: (value: MaybePromiseLike<T>) => void,
        reject: (reason?: any) => void,
    ] = promise_outside

    this is a re-export of promise_outside.

    {@inheritDoc promise_outside}

    Type Declaration

      • <T>(): [
            promise: Promise<T>,
            resolve: (value: MaybePromiseLike<T>) => void,
            reject: (reason?: any) => void,
        ]
      • create a promise with external (i.e. outside of scope) resolve and reject controls. this was created before the existence of Promise.withResolvers. if you'd like to use that instead, see the alias promise_withResolvers.

        Type Parameters

        • T

        Returns [
            promise: Promise<T>,
            resolve: (value: MaybePromiseLike<T>) => void,
            reject: (reason?: any) => void,
        ]