thread

package
v0.0.0-...-9eaa835 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool_client

type Pool_client struct {
	Max     int
	Run_num int
	Ctx     context.Context
}

func Pool

func Pool(ctx context.Context, max int) *Pool_client

func (*Pool_client) Join

func (object *Pool_client) Join()

func (*Pool_client) Run

func (object *Pool_client) Run(task Task)

func (*Pool_client) Timer

func (object *Pool_client) Timer(ctx context.Context)

func (*Pool_client) Write

func (object *Pool_client) Write(task Task)

type Task

type Task struct {
	Fun      interface{}
	Callback func(context.Context, []reflect.Value)
	Args     []interface{}
	Timeout  int
}

Jump to

Keyboard shortcuts

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