Sha256: c39c59e164a5702c2944a9e824dd42c889a5ad68d6228fc174d6cc03086c9486
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
var sys = require("sys"), childProcess = require("child_process"); function next (i) { if (i <= 0) return; var child = childProcess.spawn("echo", ["hello"]); child.stdout.addListener("data", function (chunk) { sys.print(chunk); }); child.addListener("exit", function (code) { if (code != 0) process.exit(-1); next(i - 1); }); } next(500);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rednode-0.1.2 | ext/node/benchmark/process_loop.js |
rednode-0.1.1 | ext/node/benchmark/process_loop.js |
rednode-0.1.0 | ext/node/benchmark/process_loop.js |