Documentation ¶
Overview ¶
Package zasync_op @Author:14March @File:async_op.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncOpResult ¶
type AsyncOpResult struct {
// contains filtered or unexported fields
}
func NewAsyncOpResult ¶
func NewAsyncOpResult(conn ziface.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
}
Click to show internal directories.
Click to hide internal directories.