wgroup

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

func WithContext

func WithContext(ctx context.Context) *Group

WithContext 实例化方法

func WithContextGroup

func WithContextGroup(group goroutine.GGroup) *Group

func (*Group) AddTask

func (g *Group) AddTask(f func()) bool

func (*Group) AddTaskN

func (g *Group) AddTaskN(ctx context.Context, f func()) bool

func (*Group) Wait

func (g *Group) Wait()

Jump to

Keyboard shortcuts

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