taskflow

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler[T State[T]] func(context.Context, T) (T, error)

func Concurrent

func Concurrent[T State[T]](handlers ...Handler[T]) Handler[T]

func OrderedChoice

func OrderedChoice[T State[T]](handlers ...Handler[T]) Handler[T]

func Sequence

func Sequence[T State[T]](handlers ...Handler[T]) Handler[T]

type State

type State[T any] interface {
	Merge(T) T
}

Jump to

Keyboard shortcuts

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