Documentation
¶
Overview ¶
Package faultsequence allocates finite, task-private fault steps.
Index ¶
Constants ¶
View Source
const MaxDelayMilliseconds = math.MaxInt64 / int64(time.Millisecond)
Variables ¶
View Source
var ErrExhausted = errors.New("fault sequence exhausted")
Functions ¶
func Delay ¶
Delay waits without retaining a reservation lock. Cancellation never resets a step previously allocated by Reserve.
func Reserve ¶
Reserve consumes one step using exclusive creation in an existing private directory. The directory and step count must stay unchanged until all callers finish. Markers survive process exit, but machine-crash durability is not guaranteed. Concurrent execution order is independent of reservation order. A nonnegative index means consumption occurred, even with an error; -1 means this call allocated no step.
func ValidateDelayMilliseconds ¶
ValidateDelayMilliseconds checks the source bound without creating a timer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.