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