chain

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Chain[T]

func (*Chain[T]) Append

func (t *Chain[T]) Append(fn chain.ChainErrFn[T]) *Chain[T]

func (*Chain[T]) AppendNoError

func (t *Chain[T]) AppendNoError(fn chain.ChainFn[T]) *Chain[T]

func (*Chain[T]) Prepend

func (t *Chain[T]) Prepend(fn chain.ChainErrFn[T]) *Chain[T]

func (*Chain[T]) RunList

func (t *Chain[T]) RunList(items []T) trier.Try[[]T]

func (*Chain[T]) RunSingle

func (t *Chain[T]) RunSingle(item T) trier.Try[T]

Jump to

Keyboard shortcuts

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