common

package
Version: v0.0.0-...-d6e1657 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountdownLatch

type CountdownLatch struct {
	sync.Mutex
	// contains filtered or unexported fields
}

I am writing this count down latch because sync.WaitGroup doesn't support decrementing counter when it's 0.

func NewCountdownLatch

func NewCountdownLatch(count int) *CountdownLatch

func (*CountdownLatch) Await

func (c *CountdownLatch) Await()

func (*CountdownLatch) Count

func (c *CountdownLatch) Count() int

func (*CountdownLatch) CountDown

func (c *CountdownLatch) CountDown()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL