package
0.5.0
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Packages

Package k8sext provides adapters for the Kubernetes API machinery clock implementation to this library.

# Functions

AfterFunc abstracts time.AfterFunc to use a Clock.
NewTimerCallbackClock makes a clock that calls a particular function just after NewTimer() or a timer's Reset() is called.

# Variables

RealClock is the system clock.

# Interfaces

Clock is a clock that provides both timing information and the ability to schedule.
PassiveClock is a clock that provides timing information but not the ability to schedule events for the future.
Ticker is an interface that allows for abstraction of time.Ticker.
Timer is an interface that allows for abstraction of time.Timer.

# Type aliases

TimerCallbackFunc is the callback function for a timer.