DefaultPredicates<TArgs, TResult>
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Polly.Utils
{
    internal static class DefaultPredicates<TArgs, [System.Runtime.CompilerServices.Nullable(2)] TResult> where TArgs : IOutcomeArguments<TResult>
    {
        [System.Runtime.CompilerServices.Nullable(new byte[] {
            1,
            1,
            0
        })]
        public static readonly Func<TArgs, ValueTask<bool>> HandleOutcome = delegate(TArgs args) {
            Exception exception = args.Outcome.Exception;
            return new ValueTask<bool>(exception != null && !(exception is OperationCanceledException));
        };
    }
}