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.3.0-0.dev
Published
May 25, 2021
Platform
js/wasm
Last checked
7 minutes ago

Tools for package owners.