Example #1
0
 public CancelDelegatePromiseCancel(Action <ReasonContainer> callback, Promise previous)
 {
     _callback               = callback;
     _previous               = previous;
     _valueContainer         = null;
     cancelationRegistration = default(CancelationRegistration);
 }
Example #2
0
 protected void Reset(Promise owner, CancelationToken cancelationToken)
 {
     _owner     = owner;
     _handling  = false;
     _done      = false;
     _suspended = false;
     _canceled  = false;
     _current   = default(UnsignedFixed32);
     SetCreatedStacktrace(this, 4);
     if (cancelationToken.CanBeCanceled)
     {
         _cancelationRegistration = cancelationToken.RegisterInternal(this);
     }
 }
Example #3
0
 protected virtual void Dispose()
 {
     _owner = null;
     _cancelationRegistration = default(CancelationRegistration);
 }