concurrency

package
v0.0.0-...-78e17b3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchTask

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

func NewBatchTask

func NewBatchTask(size int) *BatchTask

func (*BatchTask) DispatchTask

func (bt *BatchTask) DispatchTask() *Task

func (*BatchTask) WaitForFinish

func (bt *BatchTask) WaitForFinish() []interface{}

type Task

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

func (*Task) Answer

func (t *Task) Answer(reply interface{})

func (*Task) AnswerWithID

func (t *Task) AnswerWithID(id string, reply interface{})

type TaskResult

type TaskResult struct {
	ID     string
	Result interface{}
}

Jump to

Keyboard shortcuts

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