Beispiel #1
0
        public Future Clone()
        {
            var future = new Future(FutureNative.Clone(this._handle));

            ThrowIfError();
            return(future);
        }
Beispiel #2
0
 internal void RegisterCallBack(FutureNative.FutureCallback futureCallback)
 {
     if (!IsCompleted)
     {
         FutureNative.AddCallback(this._handle, futureCallback, IntPtr.Zero);
         ThrowIfError();
     }
 }
Beispiel #3
0
 protected override bool ReleaseHandle()
 {
     FutureNative.Destroy(this.handle);
     return(true);
 }
Beispiel #4
0
 public void Wait()
 {
     FutureNative.Wait(this._handle, (int)FutureTimeout.InfiniteTimeout);
 }
Beispiel #5
0
 public void Cancel()
 {
     FutureNative.Cancel(this._handle);
     ThrowIfError();
 }