<PackageReference Include="Polly.Core" Version="8.4.2" />

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() { return new ValueTask<bool>(true); } public static ValueTask<bool> False() { return new ValueTask<bool>(false); } } }