goman

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(f func())

New 新创建goroutine

func NewWithArgs

func NewWithArgs(f func(args ...interface{}), args ...interface{})

NewWithArgs 创建带有参数的goroutine

Types

type Instance

type Instance struct {
	Id          uint64
	CreatedTime time.Time
	File        string
	Line        int
}

func List

func List() []*Instance

List 列出所有正在运行goroutine

type TaskGroup added in v1.2.6

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

func NewTaskGroup added in v1.2.6

func NewTaskGroup() *TaskGroup

func (*TaskGroup) Lock added in v1.2.6

func (this *TaskGroup) Lock()

func (*TaskGroup) Run added in v1.2.6

func (this *TaskGroup) Run(f func())

func (*TaskGroup) Unlock added in v1.2.6

func (this *TaskGroup) Unlock()

func (*TaskGroup) Wait added in v1.2.6

func (this *TaskGroup) Wait()

Jump to

Keyboard shortcuts

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