sleep-lightweight
v1.0.1
Published
Lightweight sleep... wait for x milliseconds asynchronously
Downloads
72
Readme
sleep-lightweight 💤
Lightweight helper function to wait x milliseconds asynchronously.
Install
npm install --save sleep-lightweight
Or via Yarn:
yarn add sleep-lightweight
Usage
import { sleep } from "sleep-lightweight";
await sleep(5 * 1000) // wait for 5 seconds
"wHy dO i NEeD A LiBrary FOr that?!"
You don't ofc. I wanted mine. Feel free to re-use it.
😴