pchan

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

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

func (*Item) GetPriority

func (item *Item) GetPriority() int

func (*Item) SetPriority

func (item *Item) SetPriority(priority int)

func (*Item) Wait

func (item *Item) Wait()

type PChan

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

func New

func New() *PChan

func (*PChan) Close

func (ch *PChan) Close()

func (*PChan) Pop

func (ch *PChan) Pop() (interface{}, int, bool)

func (*PChan) Push

func (ch *PChan) Push(val interface{}, prio int) *Item

Jump to

Keyboard shortcuts

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