コード例 #1
0
ファイル: Promise.cs プロジェクト: RobboVariwn/VarBot
 /// <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)
            );
 }
コード例 #2
0
 /// <summary>
 /// Complete the promise. Adds a defualt error handler.
 /// </summary>
 public void Done()
 {
     Catch(ex =>
           Promise.PropagateUnhandledException(this, ex)
           );
 }