combined

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Par *parallel.Worker
	Seq *sequence.Worker
}

type Worker

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

Worker is a simple wrapper that combines the different worker engines in a single daemon interface.

func New

func New(c Config) *Worker

func (*Worker) Daemon

func (w *Worker) Daemon()

Daemon executes the injected worker engines concurrently, each in their own goroutine. Daemon itself does not block, so that it is the responsibility of the calling goroutine to stop the programm to exit prematurely. Any signal handling must then be injected directly into the underlying worker engines.

Jump to

Keyboard shortcuts

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