Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public ErrorDeferred()
 {
     _promise = new ErrorPromise <TError>();
 }