taskutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: BSD-3-Clause Imports: 1 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[A any] interface {
	Invoke(A) pond.Task
	Submit(func() error) pond.Task
	StopAndWait()
}

func NewPool

func NewPool[A any](size int, fn func(arg A) error) Pool[A]

type ResultPool

type ResultPool[A any, R any] interface {
	Invoke(A) pond.ResultTask[R]
	Submit(func() (R, error)) pond.ResultTask[R]
	StopAndWait()
}

func NewResultPool

func NewResultPool[A any, R any](size int, fn func(arg A) (R, error)) ResultPool[A, R]

Jump to

Keyboard shortcuts

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