Пример #1
0
 /// <summary>
 /// Fails the Future, or throws an exception
 /// if the Future has already been set or failed.
 /// </summary>
 public void Fail(Future.Failure inFailure)
 {
     Fail(inFailure.Type, inFailure.Object);
 }
Пример #2
0
 /// <summary>
 /// Attempts to return the failure object.
 /// </summary>
 public bool TryGetFailure(out Future.Failure outFailure)
 {
     outFailure = m_Failure;
     return(m_State == FutureState.Failed);
 }