Skip to content

Latest commit

 

History

History

async-delay

@esfx/async-delay

The @esfx/async-delay package provides the delay function.

Overview

Installation

npm i @esfx/async-delay

Usage

import { delay } from "@esfx/async-delay";

async function doSomeAction() {
    // wait 10 seconds
    await delay(10 * 1000);
}

API

You can read more about the API here.