sync

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroups

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

WaitGroups represents a mutex map of a ID with an associated sync.WaitGroup slice.

func NewWaitGroups

func NewWaitGroups() *WaitGroups

NewWaitGroups return a new waitGroups pointer.

func (*WaitGroups) Done

func (wG *WaitGroups) Done(iD int64)

Done sets the first wait group in the wait group slice with the given ID to done and removes it from the slice.

func (*WaitGroups) Wait

func (wG *WaitGroups) Wait(iD int64)

Wait waits for the last wait group in the wait group slice with the given ID.

Jump to

Keyboard shortcuts

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