gpool

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job = func()

type Option

type Option func(pool *poolImpl)

func WithIdleTimeout

func WithIdleTimeout(timeout time.Duration) Option

func WithMaxWorkers

func WithMaxWorkers(n int32) Option

type Pool

type Pool interface {
	Submit(job Job)
	Workers() int32
}

func New

func New(stopCh <-chan struct{}, options ...Option) Pool

Jump to

Keyboard shortcuts

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