nazasync

package
v0.30.12 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrObtainGoroutineId = errors.New("nazasync: obtain current goroutine id failed")

Functions

func CurGoroutineId added in v0.19.0

func CurGoroutineId() (int64, error)

Types

type Mutex

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

func (*Mutex) Lock

func (m *Mutex) Lock()

func (*Mutex) Unlock

func (m *Mutex) Unlock()

type MutexManager added in v0.19.1

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

注意,key是由mutex唯一ID加上协程ID组合而成

func NewMutexManager added in v0.19.1

func NewMutexManager() *MutexManager

type NonblockingOnce added in v0.30.4

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

func (*NonblockingOnce) Do added in v0.30.4

func (o *NonblockingOnce) Do(f func())

type StdOnce added in v0.30.4

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

func (*StdOnce) Do added in v0.30.4

func (o *StdOnce) Do(f func())

Jump to

Keyboard shortcuts

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