pool

package
v1.5.2-rc Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 5 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
}

func New

func New(o PoolOpts) *Pool

func (*Pool) ActiveWorkers

func (p *Pool) ActiveWorkers() int

func (*Pool) Push

func (p *Pool) Push(block uint64)

func (*Pool) Size

func (p *Pool) Size() uint64

func (*Pool) Stop

func (p *Pool) Stop()

type PoolOpts

type PoolOpts struct {
	BatchSize   int
	Logg        *slog.Logger
	WorkerCount int
	Processor   *processor.Processor
}

Jump to

Keyboard shortcuts

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