Documentation
¶
Overview ¶
Package xtypact is the EXPERIMENTAL package of typact.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex[T any] struct { // contains filtered or unexported fields }
Mutex is a value holding mutex using sync.Mutex.
func (*Mutex[T]) Lock ¶
func (m *Mutex[T]) Lock() T
Lock acquires a lock on the mutex and returns the value.
See sync.Mutex for more details.
func (*Mutex[T]) Set ¶
func (m *Mutex[T]) Set(val T)
Set acquires a lock and updates the internal value to val.
func (*Mutex[T]) TryLock ¶
TryLock tries to lock the mutex and reports the whether it succeeded.
See sync.Mutex for more details.
func (*Mutex[T]) Unlock ¶
func (m *Mutex[T]) Unlock()
Unlock releases the lock on the mutex.
See sync.Mutex for more details.
Click to show internal directories.
Click to hide internal directories.