botbuilder-azure
Version:
Azure extensions for Microsoft BotBuilder.
22 lines • 535 B
TypeScript
/**
* @module botbuilder-azure
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Task to perform only one time.
*/
export declare class DoOnce<T> {
private task;
/**
* Wait for the task to be executed.
*
* @param key Key of the task.
* @param fn Function to perform.
* @returns A promise representing the asynchronous operation.
*/
waitFor(key: string, fn: () => Promise<T>): Promise<T>;
}
//# sourceMappingURL=doOnce.d.ts.map