xthread

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllFinishFun

type AllFinishFun func()

type TaskChanFun

type TaskChanFun func(ch1 chan interface{})

type TaskFinishFun

type TaskFinishFun func(data interface{})

type TaskFun

type TaskFun func() interface{}

type Thread

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

func NewThread

func NewThread() Thread

func (*Thread) AddTaskChanFuns added in v1.0.6

func (t *Thread) AddTaskChanFuns(fun TaskChanFun)

func (*Thread) AddTaskFuns added in v1.0.6

func (t *Thread) AddTaskFuns(fun TaskFun)

func (*Thread) Start

func (t *Thread) Start(taskCallback TaskFinishFun, allFinishCallback AllFinishFun)

func (*Thread) StartSync

func (t *Thread) StartSync(taskCallback TaskFinishFun)

Jump to

Keyboard shortcuts

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