示例#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));
 }
示例#2
0
 public ErrorDeferred()
 {
     _promise = new ErrorPromise <TError>();
 }