LiftToResult

org.llm4s.util.LiftToResult
See theLiftToResult companion object
trait LiftToResult[F[_]]

Evidence that values in effect F can be lifted into Result.

The canonical instance is for cats.Id, which wraps any value in Right. Future backends with richer effects (e.g. cats.effect.IO, scala.concurrent.Future) supply their own instance to bridge into the synchronous Result error channel.

Type parameters

F

the source effect

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply[A](fa: F[A]): Result[A]

Evaluate fa and lift the outcome into Result, wrapping a successful value in Right.

Evaluate fa and lift the outcome into Result, wrapping a successful value in Right.

Attributes