Herby Vojčík 5 mesiacov pred
rodič
commit
f07a2a3e4d
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      src/deferred.js

+ 1 - 0
src/deferred.js

@@ -7,6 +7,7 @@ export default class Deferred {
         this.promise = new Promise((resolve, reject) => {
             this.resolve = resolve;
             this.reject = reject;
+            this.resolveBy = fn => resolve(fn());
         });
     }
 }