zasync_op

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package zasync_op @Author:14March @File:async_op.go

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 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
}

Jump to

Keyboard shortcuts

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