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
Types ¶
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())
Click to show internal directories.
Click to hide internal directories.