<PackageReference Include="Polly.Core" Version="8.0.0-beta.1" />
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);
}
}
}