@@ -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());
});
}