producer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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, T, machine.Void]

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) Return

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

type Naive

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

type Opt

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

type Throw

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

type Try

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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