sequencer

package
v2.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("sequencer closed")
View Source
var ErrTimedOut = errors.New("operation timed out")

Functions

This section is empty.

Types

type Sequencer

type Sequencer interface {
	PutSequenced(seq uint32, v interface{}) error
	GetNext() interface{}
	GetNextWithDeadline(t time.Time) (interface{}, error)
	Close()
}

this is simple queue which sorts items according to their sequence number and waits until sequence can be completed without gaps

func NewNoopSequencer

func NewNoopSequencer(channelDepth int) Sequencer

func NewSingleWriterSeq

func NewSingleWriterSeq(maxOutOfOrder uint32) Sequencer

Jump to

Keyboard shortcuts

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