NitroDebugger.RSP.Presentation.CancelRead C# (CSharp) Method

CancelRead() public method

public CancelRead ( Task taskToCancell ) : void
taskToCancell Task
return void
        public void CancelRead(Task taskToCancell)
        {
            try {
                this.cts.Cancel();
                taskToCancell.Wait(this.cts.Token);
            } catch (OperationCanceledException) {
            } catch (AggregateException) {
            }

            this.ResetCancellationToken();
        }