errorhandling

package
v1.2.750 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecoveryWithCleanup added in v1.1.492

func RecoveryWithCleanup()

RecoveryWithCleanup cleans up a go routine panic ensuring the terminal is left usable Example: (required on all go routines)

`defer errorhandling.RecoveryWithCleanup(recover())`

func RegisterGuiAndStartHistoryTracking added in v1.1.505

func RegisterGuiAndStartHistoryTracking(ctx context.Context, g *gocui.Gui)

RegisterGuiAndStartHistoryTracking track the gui instance we can use to cleanup

Types

This section is empty.

Jump to

Keyboard shortcuts

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