channel

package
v2.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vec

type Vec struct {
	// contains filtered or unexported fields
}

func NewVector

func NewVector(len uint64) *Vec

func (*Vec) Destroy

func (v *Vec) Destroy()

func (*Vec) Drain added in v2.15.0

func (v *Vec) Drain()

func (*Vec) Len added in v2.17.0

func (v *Vec) Len() int

func (*Vec) Pop

func (v *Vec) Pop(ctx context.Context) (worker.BaseProcess, error)

func (*Vec) Push

func (v *Vec) Push(w worker.BaseProcess)

Push is O(1) operation In case of TTL and full channel O(n) worst case, where n is len of the channel

func (*Vec) Remove

func (v *Vec) Remove(_ int64)

func (*Vec) Reset added in v2.14.4

func (v *Vec) Reset()

func (*Vec) ResetDone added in v2.15.0

func (v *Vec) ResetDone()

Jump to

Keyboard shortcuts

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