mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-27 22:28:29 +02:00
11 lines
299 B
Go
11 lines
299 B
Go
package readerioeither
|
|
|
|
import (
|
|
G "github.com/ibm/fp-go/context/readerioeither/generic"
|
|
)
|
|
|
|
// WithContext wraps an existing ReaderIOEither and performs a context check for cancellation before delegating
|
|
func WithContext[A any](ma ReaderIOEither[A]) ReaderIOEither[A] {
|
|
return G.WithContext(ma)
|
|
}
|