Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

foreach-pipeline.js 378B

1234567891011
  1. var mod_dns = require('dns');
  2. var mod_util = require('util');
  3. var mod_vasync = require('../lib/vasync');
  4. console.log(mod_vasync.forEachPipeline({
  5. 'func': mod_dns.resolve,
  6. 'inputs': [ 'joyent.com', 'github.com', 'asdfaqsdfj.com' ]
  7. }, function (err, results) {
  8. console.log('error: %s', err.message);
  9. console.log('results: %s', mod_util.inspect(results, null, 3));
  10. }));