SpinWait Class
Package: @esfx/threading-spinwait
Declaration
export declare class SpinWait
Methods
reset()
Declaration
reset(): void;
Returns
void
spinOnce()
Declaration
spinOnce(): void;
Returns
void
spinUntil(condition, ms)
Declaration
spinUntil(condition: () => boolean, ms?: number): boolean;
Parameters
- condition
- () => boolean
- ms
- number