Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶
type RoundRobin[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](equalityTestFunc func(T, T) bool) *RoundRobin[T]
func (*RoundRobin[T]) Add ¶
func (r *RoundRobin[T]) Add(item T)
func (*RoundRobin[T]) Clear ¶
func (r *RoundRobin[T]) Clear()
func (*RoundRobin[T]) Elements ¶
func (r *RoundRobin[T]) Elements() []T
func (*RoundRobin[T]) Len ¶
func (r *RoundRobin[T]) Len() int
func (*RoundRobin[T]) Next ¶
func (r *RoundRobin[T]) Next() T
func (*RoundRobin[T]) TryRemove ¶
func (r *RoundRobin[T]) TryRemove(item T) bool
Click to show internal directories.
Click to hide internal directories.