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.
Click to show internal directories.
Click to hide internal directories.