Help us shape the future of Go! Take the 2026 Go Developer Survey

channel

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 7 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() *Vec

func (*Vec) Destroy

func (v *Vec) Destroy()

func (*Vec) Len

func (v *Vec) Len() int

func (*Vec) Pop

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

func (*Vec) Push

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

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()

func (*Vec) Reset

func (v *Vec) Reset()

func (*Vec) ResetDone

func (v *Vec) ResetDone()

Jump to

Keyboard shortcuts

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