pool

package
v0.0.0-...-1d28748 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestTaskPoolRunImpl_MinimalTask

func TestTaskPoolRunImpl_MinimalTask(t *testing.T)

Types

type NewTask

type NewTask func() task.Task

type TaskPool

type TaskPool interface {
	Run(times int) error
}

type TaskPoolImpl

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

func NewTaskPoolImpl

func NewTaskPoolImpl(newTask NewTask, size int) *TaskPoolImpl

func (*TaskPoolImpl) Run

func (tp *TaskPoolImpl) Run(times int) error

type TestSuit

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

Jump to

Keyboard shortcuts

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