Table of Contents

Property ExpectedAttempt

Namespace
Millrace.Storage
Assembly
Millrace.dll

ExpectedAttempt

The attempt number the caller believes it is completing.

public required int ExpectedAttempt { get; init; }

Property Value

int

Remarks

The other half of the fence, and the half that makes it ABA-safe: every claim increments Attempt, so a worker that lost and then reclaimed the same job is still holding a stale number here and cannot apply an outcome computed for the earlier run.