AsyncDolls.TaskExtensions.IgnoreCancellation C# (CSharp) Method

IgnoreCancellation() public static method

public static IgnoreCancellation ( this task ) : System.Threading.Tasks.Task
task this
return System.Threading.Tasks.Task
        public static async Task IgnoreCancellation(this Task task)
        {
            try
            {
                await task.ConfigureAwait(false);
            }
            catch (OperationCanceledException)
            {
            }
        }
    }