Exemple #1
0
 internal void OnError(Exception error)
 {
     lock (_updateLock)
     {
         _latestWait?.OnError(error);
     }
 }
Exemple #2
0
 void TryResolveGet()
 {
     if (HasError)
     {
         _pendingGet.OnError(new Exception(_query.Context.ErrorMessage));
     }
     else if (IsDone)
     {
         _pendingGet.OnError(new Exception($"Expected to get {_key} but it is done"));
     }
     else
     {
         if (IsLatest)
         {
             _pendingGet.OnOccurred();
         }
     }
 }
Exemple #3
0
 void TryResolveDone()
 {
     if (HasError)
     {
         _pendingDone.OnError(new Exception(_query.Context.ErrorMessage));
     }
     else
     {
         if (IsLatest && IsDone)
         {
             _pendingDone.OnOccurred();
         }
     }
 }