Example #1
0
 public static void Then <TError>(this ErrorPromise <TError> promise, Action <bool, TError> action)
 {
     promise.Then(() => action(true, default(TError)), error => action(false, error));
 }
Example #2
0
 public ErrorDeferred()
 {
     _promise = new ErrorPromise <TError>();
 }