hermit

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LiftTry

func LiftTry[T any](m Try[T]) machine.Machine[machine.Void, machine.Void, T]

Types

type Base

type Base struct{}

func (*Base) Await

func (m *Base) Await(_ machine.Void)

func (*Base) Continue

func (m *Base) Continue()

func (*Base) Defer

func (m *Base) Defer()

func (*Base) DontWait

func (m *Base) DontWait()

func (*Base) Yield

func (m *Base) Yield() (machine.Void, error)

type Naive

type Naive[T any] interface {
	machine.Return[T]
	Default
}

type Opt

type Opt[T any] interface {
	machine.ReturnOpt[T]
	Default
}

type Throw

type Throw interface {
	machine.Return[error]
	Default
}

type Try

type Try[T any] interface {
	machine.ReturnTry[T]
	Default
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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