sync

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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()

Jump to

Keyboard shortcuts

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