async

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 TaskQ

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

func NewAsyncTaskQ

func NewAsyncTaskQ(name string, count uint16, handler func(*TaskQ, interface{}) error) *TaskQ

func (*TaskQ) Close

func (q *TaskQ) Close()

Close 安全关闭消息队列

func (*TaskQ) Publish

func (q *TaskQ) Publish(cnt interface{})

Publish 推送消息到队列

Jump to

Keyboard shortcuts

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