myctrl

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelayExec

func DelayExec(t time.Duration, fn func())

func NewGolimiter

func NewGolimiter(goNum int) *goLimiter

func ObjFun added in v1.8.7

func ObjFun[T any](f func() T) T

func TimerExec

func TimerExec(t time.Duration, fn func())

Types

type GoTimelimiter

type GoTimelimiter interface {
	Begin()
	End()
	Number() int32
}

func NewGoTimeLimiter

func NewGoTimeLimiter(goNum int, t time.Duration) GoTimelimiter

type Golimiter

type Golimiter interface {
	Begin()
	End()
	Number() int32
}

Jump to

Keyboard shortcuts

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