Socket
Socket
Sign inDemoInstall

try-thread-sleep

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    try-thread-sleep

Use thread-sleep if native compilation succeeded, otherwise it's a noop


Version published
Weekly downloads
368
increased by14.29%
Maintainers
1
Install size
10.4 kB
Created
Weekly downloads
 

Readme

Source

try-thread-sleep

Use thread-sleep if native compilation succeeded, otherwise it's a noop

Build Status Dependency Status NPM version

Installation

npm install try-thread-sleep

Usage

var sleep = require('try-thread-sleep');

if (!sleep.native) {
  console.warn('native thread-sleep was not available');
}

// this next line will take roughly 1 second if native compilation succeeded,
// otherwise it will be almost instant.
sleep(1000);

License

MIT

FAQs

Last updated on 10 May 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc