UNPKG

waait

Version:

A little function to wait

6 lines (5 loc) 193 B
/** * @param amount The amount of time to wait in milliseconds. * @return A promise that gets resolved after a given amount. */ export default function wait(amount?: number): Promise<void>;