Documentation ¶ Index ¶ func LiftTry[T any](m Try[T]) machine.Machine[machine.Void, machine.Void, T] type Base func (m *Base) Await(_ machine.Void) func (m *Base) Continue() func (m *Base) Defer() func (m *Base) DontWait() func (m *Base) Yield() (machine.Void, error) type Default type Naive type Opt type Throw type Try 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 Default ¶ type Default interface { machine.Await[machine.Void] machine.YieldTry[machine.Void] machine.Default } 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 } Source Files ¶ View all Source files base.go lift_try.go machine.go Directories ¶ Show internal Expand all Path Synopsis try Click to show internal directories. Click to hide internal directories.