safe

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 2 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(fn RunFn) (err error)

Run the function safely knowing that if it panics the panic will be caught and returned as an error

Types

type Group added in v1.1.0

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

func (*Group) Go added in v1.1.0

func (sg *Group) Go(fn RunFn)

func (*Group) Wait added in v1.1.0

func (sg *Group) Wait() error

type RunFn added in v1.1.0

type RunFn func() error

Jump to

Keyboard shortcuts

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