Documentation
¶
Overview ¶
Package calldecision decides how a shared call to the store ended, exactly once, under one lock: either the store returned in time or its deadline fired first. Whichever takes the lock first wins; the other then counts for nothing.
The rule is by the order of the two events at the lock, not by the instants of the reply and of the deadline: the deadline of a call is a runtime timer, and the clock package of the repository cannot stand in for it, so a comparison of instants would not be deterministic in a test. A reply that comes a hair before the deadline but takes the lock after the callback counts as overdue; the window is the time between the return of the store and the next few instructions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decision ¶
type Decision struct {
// contains filtered or unexported fields
}
Decision is the verdict on one call. The zero value is a call that is still running.