/// <summary> /// Completes the promise. /// onResolved is called on successful completion. /// Adds a default error handler. /// </summary> public void Done(Action <PromisedT> onResolved) { Then(onResolved) .Catch(ex => Promise.PropagateUnhandledException(this, ex) ); }
/// <summary> /// Complete the promise. Adds a defualt error handler. /// </summary> public void Done() { Catch(ex => Promise.PropagateUnhandledException(this, ex) ); }