concurrent

package
v1.0.156 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func NewMap

func NewMap() *Map

func (*Map) Del

func (self *Map) Del(key string, callfun func(key string) (interface{}, error)) error

func (*Map) Get

func (self *Map) Get(key string, callfun func(key string) (interface{}, error)) (interface{}, error)

func (*Map) Set

func (self *Map) Set(key string, callfun func(key string) (interface{}, error)) (interface{}, error)

type Once added in v1.0.5

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

func (*Once) Do added in v1.0.5

func (o *Once) Do(f func() (interface{}, error)) (interface{}, error)

type Sorter

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

func NewSorter

func NewSorter(item []interface{}, call func(a, b interface{}) bool) Sorter

func (*Sorter) Len

func (self *Sorter) Len() int

func (Sorter) Less

func (self Sorter) Less(i, j int) bool

func (Sorter) Sort

func (self Sorter) Sort() []interface{}

func (Sorter) Swap

func (self Sorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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