inbox

package
v0.0.0-...-e348a8d Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDLE int32 = iota
	RUNNING
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Inbox

type Inbox[V any] struct {
	// contains filtered or unexported fields
}

func NewInbox

func NewInbox[T constraints.Signed, V any](initialSize T) *Inbox[V]

func (*Inbox[V]) Push

func (slf *Inbox[V]) Push(env V)

func (*Inbox[V]) Start

func (slf *Inbox[V]) Start(processor Processor[V])

func (*Inbox[V]) Stop

func (slf *Inbox[V]) Stop() error

type Processor

type Processor[V any] interface {
	Invoke(envelopes []V)
}

Jump to

Keyboard shortcuts

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