Commit d15716c6 authored by Tristan Cavelier's avatar Tristan Cavelier

promy never function added

parent bd0740a3
......@@ -718,6 +718,17 @@
return deferred.promise;
};
/**
* never(): Promise
*
* Produces a promise that is never fulfilled.
*
* @return {Promise} A promise
*/
exports.never = function () {
return new Promise();
};
/**
* sleep(delay[, every]): Promise
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment