Help us shape the future of Go! Take the 2026 Go Developer Survey

semaphore

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

README

semaphore

channel based semaphore with live resize

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewSemaphore

func NewSemaphore(size uint64) *Semaphore

func (*Semaphore) Acquire

func (s *Semaphore) Acquire()

func (*Semaphore) Release

func (s *Semaphore) Release()

func (*Semaphore) Resize

func (s *Semaphore) Resize(newSize uint64)

Jump to

Keyboard shortcuts

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