New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

abortable-sleep

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abortable-sleep

Sleep with abort signal support

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

abortable-sleep

The abortable-sleep is an NPM package that gives you access to awaiatable sleep function with abort signal support.

Installation

To install the package, use the following command in your project:

npm install abortable-sleep

Example

const abortController = new AbortController();

await sleep(1000, abortController.signal);

Keywords

Sleep

FAQs

Package last updated on 07 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts