UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

13 lines (12 loc) 469 B
import type { UIntDuration } from '../../dt/index.js'; /** * Sleep during the specified duration * * NOTE : We are in an async world so do this only when necessary or when you want to "fake" time. * Generally speaking, if something is fast, do not make it slower just for the sake of showing a fancy animation. * Well... If it's a good one, maybe. * * @param durationInMs * @returns */ export declare function sleep(durationInMs: UIntDuration): Promise<void>;