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

uv-run

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uv-run

Bindings to the uvrun functions in libuv to node.js.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

UVRun

Bindings to the uvrun functions in libuv to node.js.

Normally these functions are implicitly called by node itself.

By using runOnce, you can have finer grained control of the event loop and know when it's idle.

var runOnce = require('uvrun').runOnce;
 
// Do something here, like make a server to keep the event loop busy
var TCP = process.binding('tcp_wrap').TCP;
var server = new TCP();
server.onconnection = function () {
  console.log("connection!");
};
server.bind("0.0.0.0", 3000);
server.listen(511);
 
// Visualize each event loop tick using a custom event loop.
console.log("Waiting for events...");
do {
  var ret = runOnce();
  console.log("tick", Date.now());
} while(ret);
// If the code gets here, there are no events left and node's built-in uv_run won't block.

FAQs

Package last updated on 07 May 2019

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