task

package
v0.0.0-...-3257b51 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 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 TaskFunc

type TaskFunc func(data interface{}) (result interface{}, err error)

type TaskManager

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

func NewTaskManager

func NewTaskManager(bufferSize int) *TaskManager

func (*TaskManager) ExecuteTask

func (self *TaskManager) ExecuteTask(taskFunc TaskFunc, data interface{}) (result interface{}, err error)

func (*TaskManager) Start

func (self *TaskManager) Start()

func (*TaskManager) Stop

func (self *TaskManager) Stop()

Jump to

Keyboard shortcuts

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