zombie

package
v0.0.0-...-3e7ea43 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoFunc

type GoFunc func(context.Context) error

type Option

type Option func(*Zombie)

func WithLogger

func WithLogger(logger *logger.Logger) Option

func WithName

func WithName(name string) Option

func WithPanicHandler

func WithPanicHandler(handler PanicHandler) Option

type PanicHandler

type PanicHandler func(name string, value any)

type Zombie

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

func Go

func Go(fn GoFunc, opts ...Option) *Zombie

func (*Zombie) Err

func (z *Zombie) Err() error

func (*Zombie) Stop

func (z *Zombie) Stop()

func (*Zombie) Wait

func (z *Zombie) Wait()

Jump to

Keyboard shortcuts

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