roundrobbin

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOnEvict added in v0.1.3

func WithOnEvict[T comparable](fn func(T)) func(*Set[T])

Types

type Set

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSet added in v0.1.3

func NewSet[T comparable](opts ...func(*Set[T])) *Set[T]

func (*Set[T]) Next

func (s *Set[T]) Next(ctx context.Context) (t T, ok bool, err error)

func (*Set[T]) Register

func (s *Set[T]) Register(ctx context.Context, t T)

func (*Set[T]) Remove added in v0.1.2

func (s *Set[T]) Remove(t T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL