sync

package
v0.0.0-...-25a2715 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Async

type Async func(gone ...interface{}) (interface{}, error)

Async defined promise.all

type Done

type Done func()

Done defined promise done

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

Lock defined rw for some mu resources

func NewLock

func NewLock() *Lock

NewLock defined NewLock

func (*Lock) Acquire

func (l *Lock) Acquire(name string, funk func(async Async))

Acquire defined acquire a mu resources

func (*Lock) Count

func (l *Lock) Count() int

Count defined count resources

Jump to

Keyboard shortcuts

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