filter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EitherError

func EitherError[T any](
	ctx context.Context,
	eitherObservable observable.Observable[either.Either[T]],
) observable.Observable[error]

EitherError operates on an observable of an either type. It filters for all eithers which are not populated with errors, and maps them to their errors (publishes errors to the resulting observable).

func EitherSuccess

func EitherSuccess[T any](
	ctx context.Context,
	eitherObservable observable.Observable[either.Either[T]],
) observable.Observable[T]

EitherSuccess operates on an observable of an either type. It filters for all eithers which are not populated with values, and maps them to their values (publishes values to the resulting observable).

Types

This section is empty.

Jump to

Keyboard shortcuts

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