コード例 #1
0
ファイル: Promise.cs プロジェクト: csuffyy/Bifrost
 /// <summary>
 /// Add a <see cref="PromiseContinueWithCallback"/> to the promise that gets called if the promise succeeds (gets signalled)
 /// </summary>
 /// <param name="callback"><see cref="PromiseContinueWithCallback"/> to add</param>
 /// <returns>Chained promise - itself</returns>
 public Promise ContinueWith(PromiseContinueWithCallback callback)
 {
     _continueWithCallbacks.Add(callback);
     if (_signalled)
     {
         CallContinueWithCallbacks();
     }
     return(this);
 }
コード例 #2
0
ファイル: Promise.cs プロジェクト: LenFon/Bifrost
 /// <summary>
 /// Add a <see cref="PromiseContinueWithCallback"/> to the promise that gets called if the promise succeeds (gets signalled)
 /// </summary>
 /// <param name="callback"><see cref="PromiseContinueWithCallback"/> to add</param>
 /// <returns>Chained promise - itself</returns>
 public Promise ContinueWith(PromiseContinueWithCallback callback)
 {
     _continueWithCallbacks.Add(callback);
     if (_signalled) CallContinueWithCallbacks();
     return this;
 }