Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eio with all npm packages installed. Try it out:

var eio = require("eio")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eio v0.1.0

Control libeio from JavaScript

node-eio

Control libeio from JavaScript

Usage

  • libeio.setMinParallel(threads): Sets the available number of threads. node's default is 4. Use this function for increasing the number of threads.
  • libeio.setMaxParallel(threads): Sets the maximum number of threads. This does only cap the number of threads and expires existing threads that are bigger than the maximum.
  • libeio.usage(): Returns an object with thread usage information.

Credits

Based on polotek's thread branch.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free