Ejemplo n.º 1
0
 /// <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)
            );
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Complete the promise. Adds a default error handler.
 /// </summary>
 public void Done()
 {
     Catch(ex =>
           Promise.PropagateUnhandledException(this, ex)
           );
 }