part

package
v0.28.20240302090836 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncMap added in v0.3.15

type FuncMap map[string]func(any) (disable bool)

type MsgType added in v0.22.19

type MsgType[T any] struct {
	// contains filtered or unexported fields
}

func NewType added in v0.22.20

func NewType[T any](to ...time.Duration) *MsgType[T]

to[0]:timeout to wait to[1]:timeout to run

func (*MsgType[T]) ClearAll added in v0.24.5

func (m *MsgType[T]) ClearAll()

func (*MsgType[T]) Pull_tag added in v0.22.19

func (m *MsgType[T]) Pull_tag(func_map map[string]func(T) (disable bool)) (cancel func())

func (*MsgType[T]) Pull_tag_async added in v0.22.21

func (m *MsgType[T]) Pull_tag_async(func_map map[string]func(T) (disable bool)) (cancel func())

func (*MsgType[T]) Pull_tag_async_only added in v0.22.21

func (m *MsgType[T]) Pull_tag_async_only(key string, f func(T) (disable bool)) (cancel func())

func (*MsgType[T]) Pull_tag_chan added in v0.26.1

func (m *MsgType[T]) Pull_tag_chan(key string, size int, ctx context.Context) (cancel func(), ch <-chan T)

func (*MsgType[T]) Pull_tag_only added in v0.22.21

func (m *MsgType[T]) Pull_tag_only(key string, f func(T) (disable bool)) (cancel func())

func (*MsgType[T]) PushLock_tag added in v0.24.4

func (m *MsgType[T]) PushLock_tag(Tag string, Data T)

不能放置在由Push_tag、PushLock_tag调用的同步Pull中

func (*MsgType[T]) Push_tag added in v0.22.19

func (m *MsgType[T]) Push_tag(Tag string, Data T)

不能放置在由PushLock_tag调用的同步Pull中

type MsgType_tag_data added in v0.27.0

type MsgType_tag_data[T any] struct {
	Tag  string
	Data *T
}

type Msgq added in v0.3.6

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

func New

func New(to ...time.Duration) *Msgq

to[0]:timeout to wait to[1]:timeout to run

func (*Msgq) ClearAll added in v0.24.5

func (m *Msgq) ClearAll()

func (*Msgq) Pull_tag added in v0.3.6

func (m *Msgq) Pull_tag(func_map map[string]func(any) (disable bool)) (cancel func())

func (*Msgq) Pull_tag_async added in v0.22.21

func (m *Msgq) Pull_tag_async(func_map map[string]func(any) (disable bool)) (cancel func())

func (*Msgq) Pull_tag_async_only added in v0.22.21

func (m *Msgq) Pull_tag_async_only(key string, f func(any) (disable bool)) (cancel func())

func (*Msgq) Pull_tag_chan added in v0.26.1

func (m *Msgq) Pull_tag_chan(key string, size int, ctx context.Context) (cancel func(), ch <-chan any)

func (*Msgq) Pull_tag_only added in v0.22.21

func (m *Msgq) Pull_tag_only(key string, f func(any) (disable bool)) (cancel func())

func (*Msgq) Push added in v0.3.6

func (m *Msgq) Push(msg any)

func (*Msgq) PushLock added in v0.24.4

func (m *Msgq) PushLock(msg any)

func (*Msgq) PushLock_tag added in v0.24.4

func (m *Msgq) PushLock_tag(Tag string, Data any)

不能放置在由Push_tag、PushLock_tag调用的同步Pull中

func (*Msgq) Push_tag added in v0.3.6

func (m *Msgq) Push_tag(Tag string, Data any)

不能放置在由PushLock_tag调用的同步Pull中

func (*Msgq) Register added in v0.21.6

func (m *Msgq) Register(f func(any) (disable bool)) (cancel func())

func (*Msgq) Register_front added in v0.22.21

func (m *Msgq) Register_front(f func(any) (disable bool)) (cancel func())

type Msgq_tag_data added in v0.3.6

type Msgq_tag_data struct {
	Tag  string
	Data any
}

Jump to

Keyboard shortcuts

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