xsync

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

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

Go ...

func Once

func Once[T any](fn func() T) func() T

Once ...

Types

type WaitGroup

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

WaitGroup 基于 sync.WaitGroup 增加协程池处理

func NewWaitGroup

func NewWaitGroup(args ...int) *WaitGroup

NewWaitGroup ...

func (*WaitGroup) Add

func (t *WaitGroup) Add()

Add ...

func (*WaitGroup) Done

func (t *WaitGroup) Done()

Done ...

func (*WaitGroup) Wait

func (t *WaitGroup) Wait()

Wait ...

Jump to

Keyboard shortcuts

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