Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libuv_thread

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libuv_thread

A Node.js multi-thread package,using libuv lib

  • 0.0.7
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

nodeLibuvThreadBuild Status

node multi thread support using libuv.

Installing the module

With npm:

libuv_thread module is supported windows, linux, mac.

Make sure, node-gyp has installed.

 npm install libuv_thread

From source:

 git clone https://github.com/DoubleSpout/nodeLibuvThread.git
 cd libuv_thread
 node-gyp rebuild

To include the module in your project:

 var libuv_thread = require('libuv_thread');

##Simple Example:

var thread = require('../');
var threadFunc = function(obj){
	return ++obj.count;
}
thread(threadFunc, {count:0}, function(err,count){
	if(err) return console.log(err);
	console.log(count);//this will print 1
})

##Api:

libuv_thread(func, obj, callback);

func: thread work function

obj: arguments for the thread funtion

callback:has two arguments,error and result,the result will be thread work return value

Keywords

FAQs

Package last updated on 29 Oct 2013

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc