IPromiseTimer Interface
Packages > @fluidframework/common-utils > IPromiseTimer
Timer which offers a promise that fulfills when the timer completes.
Signature:
export interface IPromiseTimer extends ITimer
Extends: ITimer
Methods
Method | Description |
---|---|
start() | Starts the timer and returns a promise that resolves when the timer times out or is canceled. |
Methods
start
Starts the timer and returns a promise that resolves when the timer times out or is canceled.
Signature:
start(): Promise<IPromiseTimerResult>;
Returns:
Promise<IPromiseTimerResult>