Documentation ¶
Overview ¶
Package tsslice provides a collection of thread-safe slice functions that can be safely used between multiple goroutines.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append[T any](mux threadsafe.Locker, slice *[]T, item ...T)
Append is a thread-safe version of the Go built-in append function.
func Get ¶
func Get[T any](mux threadsafe.RLocker, slice []T, key int) T
Get is a thread-safe function to get a value by key in a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.