@itwin/presentation-common
Version:
Common pieces for iModel.js presentation packages
23 lines • 508 B
TypeScript
/** @packageDocumentation
* @module Core
*/
/**
* A helper to track ongoing async tasks. Usage:
* ```
* {
* using _r = tracker.trackAsyncTask();
* await doSomethingAsync();
* }
* ```
*
* Can be used with `waitForPendingAsyncs` in test helpers to wait for all
* async tasks to complete.
*
* @internal
*/
export declare class AsyncTasksTracker {
private _asyncsInProgress;
get pendingAsyncs(): Set<string>;
trackAsyncTask(): Disposable;
}
//# sourceMappingURL=AsyncTasks.d.ts.map