Ejemplo n.º 1
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));
 }
Ejemplo n.º 2
0
 public static void Then(this Promise promise, Action <bool> action)
 {
     promise.Then(() => action(true), () => action(false));
 }