async_op

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(opId int, asyncOp func())

Types

type AsyncOpResult

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

func NewAsyncOpResult

func NewAsyncOpResult(conn iface.IConnection) *AsyncOpResult

NewAsyncOpResult creates a new asynchronous result(新建异步结果)

func (*AsyncOpResult) GetReturnedObj

func (aor *AsyncOpResult) GetReturnedObj() interface{}

GetReturnedObj returns the return value (获取返回值)

func (*AsyncOpResult) OnComplete

func (aor *AsyncOpResult) OnComplete(val func())

OnComplete sets the completion callback function(完成回调函数)

func (*AsyncOpResult) SetReturnedObj

func (aor *AsyncOpResult) SetReturnedObj(val interface{})

SetReturnedObj sets the return value(设置返回值)

type AsyncWorker

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

Jump to

Keyboard shortcuts

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