safe

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package safe provides tools for safe programs

Index

Constants

This section is empty.

Variables

View Source
var DefaultRecover = func(err interface{}) {
	log.Printf("Error in Go routine: %s\nStack: %s\n", err, debug.Stack())
}

Functions

func Go

func Go(goroutine func())

Go starts a recoverable goroutine

func GoWithRecover

func GoWithRecover(goroutine func(), customRecover func(err interface{}))

GoWithRecover starts a recoverable goroutine using given customRecover() function

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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