runners

package
v0.0.0-...-48e7155 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

func NewRunner

func NewRunner(parent context.Context, downChan chan<- struct{}) *Runner

func (*Runner) RunWorker

func (r *Runner) RunWorker(fns ...func(ctx context.Context))

RunWorker 单独拉起携程执行某个函数,并拦截 panic 并在一秒之后重新启动 这个执行函数,一般都是阻塞的

func (*Runner) Stop

func (r *Runner) Stop()

Stop 结束任务执行器

Jump to

Keyboard shortcuts

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