state-switch
Version:
State Switch is a Change Monitor/Guarder for Async Actions.
20 lines • 500 B
TypeScript
import { StateSwitch } from './state-switch.js';
declare class BusyIndicator {
private state;
constructor(...args: ConstructorParameters<typeof StateSwitch>);
/**
* Set busy state
* @param b busy or not
*/
busy(b: boolean): void;
/**
* Get busy state
*/
busy(): boolean;
/**
* Return a Promise that resolves when the busy state is off
*/
idle(): Promise<void>;
}
export { BusyIndicator };
//# sourceMappingURL=busy-indicator.d.ts.map