goz

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogPanic

func LogPanic(l Logger, deep int) func(any)

func Recover

func Recover(fn func(), panicFn func(any), cleanups ...func())

Types

type Limiter

type Limiter struct {
	// contains filtered or unexported fields
}

func NewLimiter

func NewLimiter(limit int) *Limiter

func (*Limiter) Go

func (l *Limiter) Go(fn func()) *Limiter

func (*Limiter) SetPanicHandler

func (l *Limiter) SetPanicHandler(fn func(any)) *Limiter

func (*Limiter) Wait

func (l *Limiter) Wait(waitTime ...time.Duration)

type Logger

type Logger interface {
	Error(args ...any)
}

Jump to

Keyboard shortcuts

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