stream

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedSizeObserver

type FixedSizeObserver[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewFixedSizeObserver

func NewFixedSizeObserver[T interface{}](
	ctx context.Context,
	maxSize int,
	waitElementsInterval time.Duration,
	waitSubscribersInterval time.Duration,
	skipElements bool,
	skipWithoutSubscribers bool,
) *FixedSizeObserver[T]

func (*FixedSizeObserver[T]) GetLength

func (q *FixedSizeObserver[T]) GetLength() int

func (*FixedSizeObserver[T]) Publish

func (q *FixedSizeObserver[T]) Publish(element T)

func (*FixedSizeObserver[T]) Release

func (q *FixedSizeObserver[T]) Release()

func (*FixedSizeObserver[T]) Subscribe

func (q *FixedSizeObserver[T]) Subscribe(ctx context.Context) <-chan T

Jump to

Keyboard shortcuts

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