mtimer

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAllTimeout

func ClearAllTimeout()

func ClearTimeout

func ClearTimeout(tid int32)

func Run

func Run(f func(), opt *Option) (err error)

TODO 替代 time.After

func SetTimeout

func SetTimeout(td time.Duration, f func()) int32

TODO 替代 time.After

Types

type Option

type Option struct {
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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