1.0.0 • Published 10 months ago

@esfx/threading-sleep v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
10 months ago

@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.