package
1.0.33
Repository: https://github.com/eluv-io/common-go.git
Documentation: pkg.go.dev

# Functions

AfterFunc waits for the duration to elapse and then calls f in its own goroutine.
NewPeriodic creates a new Periodic call helper with the given period.
NewTimer creates a new Timer that will send the current time on its channel after at least duration d.
StartWatch starts and returns a stopwatch.
WarnSlowOp logs a warning with the provided log function if the actual duration of an operation is larger than the given limit.
WarnSlowOpFn executes the given operation and logs a warning with the provided log function if the execution takes longer than the given limit.

# Structs

No description provided by the author
Timer is a wrapper around the standard time.Timer that provides additional state information.

# Interfaces

Periodic is a helper that calls a provided function at most once every time-period it was configured with.