Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 231 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 231 Bytes

delay-async

A Promise-based wrapper for setTimeout

Usage

import delayAsync from 'delay-async';

async function wait100ms() {
    console.log("Start");
    await delayAsync(100);
    console.log("100ms later");
}