xsync

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context added in v0.0.8

func Context() context.Context

Context ...

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