1 | /**
|
2 | * Bind the callback and only invoke the callback once regardless how many times `BindOnceFuture.call` is invoked.
|
3 | */
|
4 | export declare class BindOnceFuture<R, This = unknown, T extends (this: This, ...args: unknown[]) => R = () => R> {
|
5 | private _callback;
|
6 | private _that;
|
7 | private _isCalled;
|
8 | private _deferred;
|
9 | constructor(_callback: T, _that: This);
|
10 | get isCalled(): boolean;
|
11 | get promise(): Promise<R>;
|
12 | call(...args: Parameters<T>): Promise<R>;
|
13 | }
|
14 | //# sourceMappingURL=callback.d.ts.map |
\ | No newline at end of file |