package ioeither

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

Index

Functions

func WithContext

func WithContext[A any](ctx context.Context, ma IOE.IOEither[error, A]) IOE.IOEither[error, A]

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

Source Files

ioeither.go

Directories

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

Tools for package owners.