mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
No bug - Remove obsolete Promise.defer() from comment. DONTBUILD
This commit is contained in:
parent
08d1221884
commit
cdfde9b60e
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user