UNPKG

thorish

Version:

This is a library of useful JS concepts and data structures for Node and the browser. It it, unashamedly, a dumping ground for code needed by [@samthor](https://twitter.com/samthor)'s projects.

9 lines (8 loc) 325 B
/** * Checks the given condition by re-running the passed function many times. * Useful for tests. * * Called many times within the given {@link ms} period, default `2000` ms. */ export declare function checkCond<T>(check: () => T, ms?: number): Promise<Awaited<T>>; export declare const defaultCheckCondTimeout = 2000;