<PackageReference Include="Polly.Core" Version="8.0.0-alpha.4" />

PredicateResult

public static class PredicateResult
Class that represents the results that can be used in predicates.
using System.Threading.Tasks; namespace Polly { public static class PredicateResult { public static ValueTask<bool> True => new ValueTask<bool>(true); public static ValueTask<bool> False => new ValueTask<bool>(false); } }