Commit 60e79a08 authored by Tristan Cavelier's avatar Tristan Cavelier

promy never function added

parent 5372362f
...@@ -718,6 +718,17 @@ ...@@ -718,6 +718,17 @@
return deferred.promise; 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 * 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