Documentation ¶
Index ¶
- func AddPanicCallback(cb func(x any, stack string))
- func Call(fn ...func())
- func CallWithTimeout(duration time.Duration, fn ...func()) (timeout bool)
- func Go(fn ...func())
- func GoWithDeadline(deadline time.Time, fns ...func())
- func GoWithTimeout(timeout time.Duration, fns ...func())
- func Goes(fn ...func())
- func Method(v any, methodName string, in ...any) ([]any, error)
- func Recover(args ...interface{}) any
- func ThroughMethod(structs ...any)
- func WrapperFuncs(fn ...func()) func()
- type Goroutines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPanicCallback ¶
func CallWithTimeout ¶
func GoWithDeadline ¶
GoWithDeadline 执行多个协程(附带最后期限)
func GoWithTimeout ¶
GoWithTimeout 执行多个协程(附带超时时间)
func ThroughMethod ¶
func ThroughMethod(structs ...any)
func WrapperFuncs ¶
func WrapperFuncs(fn ...func()) func()
Types ¶
type Goroutines ¶
type Goroutines struct {
// contains filtered or unexported fields
}
func NewGoroutines ¶
func NewGoroutines() *Goroutines
Click to show internal directories.
Click to hide internal directories.