Beispiel #1
0
 public static void Then(this Promise promise, Action <bool> action)
 {
     promise.Then(() => action(true), () => action(false));
 }
Beispiel #2
0
 public static void Then <TComplition, TError>(this Promise <TComplition, TError> promise,
                                               Action <bool, TComplition, TError> action)
 {
     promise.Then(complition => action(true, complition, default(TError)), error => action(false, default(TComplition), error));
 }
Beispiel #3
0
 public Deferred()
 {
     _promise = new Promise <TComplition, TError>();
 }