util

package
v0.0.0-...-ce4079a Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletionLatch

type CompletionLatch interface {
	TaskAdded()
	Success()
	Failure()
	Await() bool
}

func NewCompletionLatch

func NewCompletionLatch(count int) CompletionLatch

type Semaphore

type Semaphore chan empty

func NewSemaphore

func NewSemaphore(permits int) Semaphore

func (Semaphore) Acquire

func (semaphore Semaphore) Acquire()

func (Semaphore) Release

func (semaphore Semaphore) Release()

Jump to

Keyboard shortcuts

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