async_op

package
v0.0.0-...-e849032 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(bindId int, asyncOp func(), continueWith func())

Process 处理异步过程, asyncOp 异步函数, 将被放到一个新协程里去执行... continueWith 则是回到主线程继续执行的函数

func StrToWorkId

func StrToWorkId(strVal string) int

StrToWorkId 字符串转为 workID

Types

type AsyncBizResult

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

AsyncBizResult 异步业务结果

func (*AsyncBizResult) GetReturnedObj

func (bizResult *AsyncBizResult) GetReturnedObj() interface{}

GetReturnedObj 获取已返回对象

func (*AsyncBizResult) OnComplete

func (bizResult *AsyncBizResult) OnComplete(val func())

OnComplete 完成回调函数

func (*AsyncBizResult) SetReturnedObj

func (bizResult *AsyncBizResult) SetReturnedObj(val interface{})

SetReturnedObj 设置已返回对象

Jump to

Keyboard shortcuts

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