ThrowIfCanceled() public method

public ThrowIfCanceled ( ) : void
return void
コード例 #1
0
            public TResult GetResult()
            {
                Registration.ThrowIfCanceled();

                if (Future.Disposed && HasDisposedValue)
                {
                    return(DisposedValue);
                }

                return(Future.Result2);
            }
コード例 #2
0
            public object GetResult()
            {
                Registration.ThrowIfCanceled();

                return(Future.Result2);
            }