packageDocumentation module import { Guid , GuidString , IDisposable } from "@itwin/core-bentley" ; internal export class AsyncTasksTracker { private _asyncsInProgress = new Set < GuidString > ( ) ; public get pendingAsyncs ( ) { return this . _asyncsInProgress ; } public trackAsyncTask ( ) { const id = Guid . createValue ( ) ; this . _asyncsInProgress . add ( id ) ; return { dispose : ( ) => this . _asyncsInProgress . delete ( id ) } ; } }