Documentation
¶
Overview ¶
Package xsync contains synchronization utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReset ¶
func GetReset[
P interface {
// Reset resets item state for re-use.
Reset()
*T
},
T any,
](p *Pool[P, T]) P
GetReset gets a P from pool and resets it.
func KeyOnce ¶
func KeyOnce[K comparable, V any](do func(K) V) func(K) V
KeyOnce return function that calls make only once per key.
Types ¶
Click to show internal directories.
Click to hide internal directories.