package
1.25.10
Repository: https://github.com/aperturerobotics/util.git
Documentation: pkg.go.dev

# Functions

NewLogExitedCallback returns a ExitedCb which logs when a controller exited.
NewRoutineContainer constructs a new RoutineContainer.
NewRoutineContainerWithLogger constructs a new RoutineContainer instance.
NewStateRoutineContainer constructs a new StateRoutineContainer.
NewStateRoutineContainer constructs a new StateRoutineContainer with protobuf comparison.
NewRoutineContainerWithLogger constructs a new RoutineContainer instance.
NewRoutineContainerWithLogger constructs a new RoutineContainer instance.
WithBackoff configures a backoff to use when the routine returns an error.
WithExitCb adds a callback after a routine exits.
WithExitLogger adds a exited callback which logs information about the exit.
WithRetry configures a backoff configuration to use when the routine returns an error.

# Structs

RoutineContainer contains a Routine.
StateRoutineContainer contains a Routine which is restarted when the input State changes.

# Interfaces

Option is an option for a RoutineContainer instance.

# Type aliases

Routine is a function called as a goroutine.
StateRoutine is a function called as a goroutine with a state parameter.