coroutines

package
v0.0.0-...-746a50b Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectCoRoutines

func InjectCoRoutines(s *CoRoutines)

func InjectCoRunner

func InjectCoRunner(s *CoRunner)

func LoadCoRoutines

func LoadCoRoutines() baseiface.ISingleton

func LoadCoRunner

func LoadCoRunner() baseiface.ISingleton

Types

type CoRoutines

type CoRoutines struct {
	basedto.BaseEntitySingle
}

func FindBeanCoRoutines

func FindBeanCoRoutines() *CoRoutines

func NewCoRoutines

func NewCoRoutines() *CoRoutines

func (*CoRoutines) Execute

func (self *CoRoutines) Execute(iface iface.CoRunnerIface) *basedto.IchubResult

func (*CoRoutines) Merge

func (self *CoRoutines) Merge(resultList *arraylist.List) *basedto.IchubResult

type CoRunner

type CoRunner struct {
	basedto.BaseEntity // BaseEntity 提供基础实体属性和方法。
	*dto.CoData        `di:"auto"`
	iface.CoRunnerIface
}

CoRunner 是一个负责并发执行任务的协程运行器 它继承了基于DTO的基础实体和协程运行器接口, 用于简化并发任务的管理和执行。

func FindBeanCoRunner

func FindBeanCoRunner() *CoRunner

func NewCoRunner

func NewCoRunner() *CoRunner

NewCoRunner 创建并返回一个新的CoRunner实例。 这是获取CoRunner实例的推荐方式。

func (*CoRunner) Execute

func (g *CoRunner) Execute(data *dto.CoData) *basedto.IchubResult

func (*CoRunner) GetData

func (g *CoRunner) GetData() *dto.CoData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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