UNPKG

@eggjs/tegg-common-util

Version:
10 lines (9 loc) 286 B
declare class TimeoutError extends Error { constructor(message: string); } export declare class TimerUtil { static TimeoutError: typeof TimeoutError; static sleep(ms: number): Promise<void>; static timeout<T>(fn: () => Promise<T>, ms?: number): Promise<T>; } export {};