xthread

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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

func (t *Thread) AddTaskChanFuns(fun TaskChanFun)

func (*Thread) AddTaskFuns

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