try-thread-sleep
Use thread-sleep if native compilation succeeded, otherwise it's a noop
Last updated 8 years ago by forbeslindesay .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install try-thread-sleep 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (8 years ago)

4 Versions

  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |