@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
9 lines (8 loc) • 402 B
TypeScript
/**
* Calls the callback if the promise does not resolve in a amount of time.
*
* @param promise
* @param callback Called if promise does not resolve in the time defined by 'delay'
* @param delay Time after which if the promise was not resolved the callback (fn) is called.
*/
export declare const runIfNotResolvedIn: <T>(promise: Promise<T>, callback: () => void, delay?: number) => Promise<T>;