package generic

import "github.com/IBM/fp-go/context/ioeither/generic"

Index

Functions

func WithContext

func WithContext[GIO ~func() E.Either[error, A], A any](ctx context.Context, ma GIO) GIO

WithContext wraps an existing IOEither and performs a context check for cancellation before delegating

Source Files

ioeither.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
4 months ago

Tools for package owners.