internal

package
v2.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJitter added in v2.11.2

func AddJitter(duration time.Duration, jitter float64) time.Duration

AddJitter adds random jitter to a duration.

It adds or subtracts time from the duration within a given jitter fraction. For example for 10s and jitter 0.1, it returns a duration within [9s, 11s).

func IdentifyPanic added in v2.3.5

func IdentifyPanic(extraSkip int) string

IdentifyPanic reports the panic location when a panic happens.

func NextPowerOfTwo

func NextPowerOfTwo(x uint) uint

Types

This section is empty.

Directories

Path Synopsis
Package constraints defines a set of useful constraints to be used with type parameters.
Package constraints defines a set of useful constraints to be used with type parameters.
Package unsafeheader contains header declarations copied from Go's runtime.
Package unsafeheader contains header declarations copied from Go's runtime.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL