No bug - Remove obsolete Promise.defer() from comment. DONTBUILD

This commit is contained in:
Brian Nicholson 2014-08-14 17:11:29 -07:00
parent 08d1221884
commit cdfde9b60e

View File

@ -68,9 +68,7 @@ let RequestService = {
* task asynchronously. For example:
* RequestService.addListener({
* onRequest: function* (aMessage, aData) {
* let deferred = Promise.defer();
* setTimeout(deferred.resolve, 2000);
* yield deferred.resolve;
* yield new Promise(resolve => setTimeout(resolve, 2000));
* return { response: "bar" };
* }
* }, "Demo:Request");