UNPKG

concurrent

Version:

Promises/A+ with Scala awesomeness

11 lines (8 loc) 294 B
var util = require('util'); var TimeoutError = module.exports = function(time) { Error.captureStackTrace(this, this); this.time = time; this.message = 'Future did not resolve in ' + this.time + ' ms'; }; util.inherits(TimeoutError, Error); TimeoutError.prototype.name = 'TimeoutError';