Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
515 B
Plaintext
14 lines
515 B
Plaintext
/**
|
|
* Bind the callback and only invoke the callback once regardless how many times `BindOnceFuture.call` is invoked.
|
|
*/
|
|
export declare class BindOnceFuture<R, This = unknown, T extends (this: This, ...args: unknown[]) => R = () => R> {
|
|
private _isCalled;
|
|
private _deferred;
|
|
private _callback;
|
|
private _that;
|
|
constructor(callback: T, that: This);
|
|
get isCalled(): boolean;
|
|
get promise(): Promise<R>;
|
|
call(...args: Parameters<T>): Promise<R>;
|
|
}
|
|
//# sourceMappingURL=callback.d.ts.map |