internal unsafe void Cancel() { if (this.IsCompleted || this._handle.IsInvalid || Win32Native.CancelIoEx(this._handle, this._overlapped)) { return; } int lastWin32Error = Marshal.GetLastWin32Error(); if (lastWin32Error == 1168) { return; } __Error.WinIOError(lastWin32Error, string.Empty); }