Skip to content

Latest commit

 

History

History

threading-sleep

@esfx/threading-sleep

Provides a sleep function which causes the current execution thread to sleep until the timeout expires.

Overview

Installation

npm i @esfx/threading-sleep

Usage

import { sleep } from "@esfx/threading-sleep";

// block the main thread for half a second
sleep(500);

API

You can read more about the API here.