Upsilon-VsCode/Client/node_modules/vscode-languageclient/lib/utils/async.d.ts

17 lines
403 B
TypeScript
Raw Normal View History

2019-02-17 17:07:28 +00:00
export interface ITask<T> {
(): T;
}
export declare class Delayer<T> {
defaultDelay: number;
private timeout;
private completionPromise;
private onSuccess;
private task;
constructor(defaultDelay: number);
trigger(task: ITask<T>, delay?: number): Promise<T>;
forceDelivery(): T | undefined;
isTriggered(): boolean;
cancel(): void;
private cancelTimeout;
}