syncs

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitAll added in v0.10.0

func WaitAll(total int) func(yield func(i int) bool)

WaitAll Wrap sync.WaitGroup

note that you should not break the loop func

func WaitAllWithLimitG added in v0.10.0

func WaitAllWithLimitG(total int, limit int) func(yield func(i int) bool)

WaitAllWithLimitG is similar to WaitAll but also limits the number of active goroutines in this group to at most limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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