package sync

import "honnef.co/go/tools/internal/sync"

Index

Types

type Semaphore

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

func NewSemaphore

func NewSemaphore(size int) Semaphore

func (Semaphore) Acquire

func (sem Semaphore) Acquire()

func (Semaphore) AcquireMaybe

func (sem Semaphore) AcquireMaybe() bool

func (Semaphore) Cap

func (sem Semaphore) Cap() int

func (Semaphore) Len

func (sem Semaphore) Len() int

func (Semaphore) Release

func (sem Semaphore) Release()

Source Files

sync.go

Version
v0.5.0-rc.1
Published
Jul 1, 2024
Platform
darwin/amd64
Last checked
14 minutes ago

Tools for package owners.