runner

package
v0.3.74 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.3.72

type Option func(*Runner)

func WithGracefulStopFunc

func WithGracefulStopFunc(gracefulStopFunc func()) Option

func WithNumCPU

func WithNumCPU(numCPU int) Option

func WithRLimitEnable added in v0.3.72

func WithRLimitEnable(rlimitEnable bool) Option

func WithRunFunc

func WithRunFunc(runFunc func()) Option

type Runner

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

func New

func New(opts ...Option) *Runner

func (*Runner) AddRunFunc

func (r *Runner) AddRunFunc(runFunc func())

func (Runner) Run

func (r Runner) Run(forever ...bool)

Jump to

Keyboard shortcuts

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