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