concurrency

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithWorkers

func WithWorkers(recr nc.Receiver, workers int, errHandler errHandlerFnk, options ...Option) nc.Receiver

WithWorkers wraps receiver in concurrent pool

Types

type Option

type Option func() rpool.Option

Option func type which adjust option values

func WithRecoverHandler

func WithRecoverHandler(f func(any)) Option

WithRecoverHandler defined error handler

func WithWorkerPoolSize

func WithWorkerPoolSize(size int) Option

WithWorkerPoolSize setup maximal size of worker pool

Jump to

Keyboard shortcuts

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