effect

package
v0.0.0-...-0e61b49 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultEffect

func NewDefaultEffect[A, B any]() *chanEffectHandler[A, B]

Types

type Coroutine

type Coroutine[A, B any] interface {
	Resume(A) B
	Return(B)
}

type EffMonad

type EffMonad[A any] struct {
}

type Effect

type Effect[A, B any] interface {
	Coroutine[A, B]
	Exception
	Do(func()) A
}

type Exception

type Exception interface {
	Throw(error)
}

Jump to

Keyboard shortcuts

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