Better HN
topnewbestaskshowjobs
Log inSign up

noisysocks

2 karma · joined Jan 27, 2012 (14y ago) · 3 submissions

Submissions

comment 12y ago · link · parent

A silly example:

  var Promise = require('bluebird');
  var fs = Promise.promisifyAll(require('fs'));
  var and = require('101/and');
  
  var paths = [...];
  Promise.map(paths, fs.existsAsync).reduce(and)
    .then(function(allExist) {
      if (allExist) console.log('all paths exist');
    });

comment 13y ago · link · parent

I can only imagine the ECB ignored this reality so as to justify their recommendation for governments to implement austerity.

comment 13y ago · link · parent

Yes, but that would require that the road close for debris to be picked up. The water wall solution allows the tunnel to resume operation quickly. A small jam in the Sydney Harbour Tunnel blocks the whole city, so we want to avoid unnecessarily large delays.