Struct ProtoPollResult<T>
The outcome of a PollAsync<T>(Func<CancellationToken, ValueTask<T>>, Func<T, bool>, TimeSpan, TimeSpan, CancellationToken) call.
public readonly record struct ProtoPollResult<T> : IEquatable<ProtoPollResult<T>>
Type Parameters
T
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoPollResult(T, bool, TimeSpan)
The outcome of a PollAsync<T>(Func<CancellationToken, ValueTask<T>>, Func<T, bool>, TimeSpan, TimeSpan, CancellationToken) call.
public ProtoPollResult(T Value, bool Satisfied, TimeSpan Elapsed)
Parameters
Properties
Elapsed
public TimeSpan Elapsed { get; init; }
Property Value
Satisfied
public bool Satisfied { get; init; }
Property Value
Value
public T Value { get; init; }
Property Value
- T