public FutureStatus status()
        {
            FutureStatus result = (FutureStatus)AppUtilPINVOKE.FutureBase_status(this.swigCPtr);

            if (AppUtilPINVOKE.SWIGPendingException.Pending)
            {
                throw AppUtilPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Пример #2
0
 public virtual void Reset()
 {
     if (!this.IsComplete)
     {
         this.Cancel();
     }
     _state       = FutureStatus.Initial;
     _error       = null;
     _onComplete  = null;
     _waiterCount = 0;
 }
Пример #3
0
 protected virtual void _Start()
 {
     if (!this.IsComplete)
     {
         this.Cancel();
     }
     _state       = FutureStatus.Incomplete;
     _error       = null;
     _onComplete  = null;
     _waiterCount = 0;
 }
Пример #4
0
 protected override bool CompleteFromInherit(FutureStatus state, Exception error)
 {
     return(Complete(state, default(T), error));
 }
Пример #5
0
 protected abstract bool CompleteFromInherit(FutureStatus state, Exception error);
Пример #6
0
		/// <summary>
		/// Resets this Future to Pending.
		/// </summary>
		protected virtual void InternalReset ()
		{
			status = FutureStatus.Pending;
			exception = null;
		}