Documentation
¶
Index ¶
- func Dequeue(data []any) (any, []any, bool)
- func DequeueMultiple(n int, data []any) ([]any, []any, bool)
- func Enqueue(dataIn []any, item any) (bool, []any)
- func EnqueueInFront(data []any, item any) (bool, []any)
- func RotateLeft(dataIn []any) []any
- func RotateRight(dataIn []any) []any
- func SendSignal(signal chan struct{}, timeout ...time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DequeueMultiple ¶
DequeueMultiple will return a number of items less than or equal to the value of n while maintaining the input data on the second slice of interface, it will return true if there are no items to dequeue
func Enqueue ¶
Enqueue can be used to add an item to the back of a queue while maintaining it's capacity (e.g. in-place) it will return true if the queue is full
func EnqueueInFront ¶
EnqueueInFront can be used to add an item to the front of the queue while maintaining its capacity, it will return true if the queue is full
func RotateLeft ¶
RotateLeft can be used to perform an in-place rotation left of a slice of empty interface
func RotateRight ¶
RotateRight can be used to perform an in-place rotation right of a slice of empty interface
func SendSignal ¶
SendSignal will perform a non-blocking send with or without a timeout depending on whether ConfigSignalTimeout is greater than 0
Types ¶
This section is empty.