@vyriy/pause
v0.1.20
Published
Shared pause utility for Vyriy projects
Readme
@vyriy/pause
Shared pause utility for Vyriy projects.
Purpose
This package provides a tiny promise-based delay helper for async flows where code should wait for a fixed amount of time before continuing.
Install
With npm:
npm install @vyriy/pauseWith Yarn:
yarn add @vyriy/pauseUsage
import { pause } from '@vyriy/pause';
await pause(250);
console.log('continued after 250ms');API
pause(ms)returns aPromise<void>that resolves aftermsmilliseconds.
