goroutines

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStackTrace

func GetStackTrace(cutLines int) []string

func Run

func Run(fn func())

Run runs the goroutine using go's scheduler. Not safe for thread-related operations

func RunOS

func RunOS(fn func())

RunOS runs the goroutine as a system thread

func SetCrashHandler

func SetCrashHandler(fn CrashHandler)

Types

type CrashHandler

type CrashHandler func(err any, stackTrace []string)

Jump to

Keyboard shortcuts

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