class Example { private _loading: RunGuard | null = null; get loading(): boolean { return !!this._loading?.active; } someMethod() { const loading = this._loading = new RunGuard(); try { // do something } finally { loading.dispose(); } }}
Generated using TypeDoc
Example