12 lines
378 B
JavaScript
12 lines
378 B
JavaScript
var mod_dns = require('dns');
|
|
var mod_util = require('util');
|
|
var mod_vasync = require('../lib/vasync');
|
|
|
|
console.log(mod_vasync.forEachParallel({
|
|
'func': mod_dns.resolve,
|
|
'inputs': [ 'joyent.com', 'github.com', 'asdfaqsdfj.com' ]
|
|
}, function (err, results) {
|
|
console.log('error: %s', err.message);
|
|
console.log('results: %s', mod_util.inspect(results, null, 3));
|
|
}));
|