gtask

package
v0.0.0-...-cc6ace1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 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

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

Pool is the task pool for managing some async jobs.

func DefaultPool

func DefaultPool() *Pool

func NewPool

func NewPool() *Pool

func (*Pool) AddTask

func (p *Pool) AddTask(fn taskFunc, interval time.Duration)

func (*Pool) Start

func (p *Pool) Start(ctx context.Context)

func (*Pool) Stop

func (p *Pool) Stop()

Jump to

Keyboard shortcuts

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