catch

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PENDING   int = 0
	FULFILLED int = 1
	REJECTED  int = 2
	FINALLY   int = 3
)

PENDING

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception interface {
	Then(func(interface{})) Exception
	Catch(func(err interface{})) Exception
	Finally(func()) Exception
}

Exception interface

func Try

func Try(cb func() interface{}) Exception

Try func

type Exec

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

Exec struct

func (*Exec) Catch

func (exec *Exec) Catch(cb func(err interface{})) Exception

Catch func

func (*Exec) Finally

func (exec *Exec) Finally(cb func()) Exception

Finally func

func (*Exec) Then

func (exec *Exec) Then(cb func(interface{})) Exception

Then func

Jump to

Keyboard shortcuts

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