Provides access to the error in fa
, if present, by wrapping it in a Left
.
Provides access to the error in fa
, if present, by wrapping it in a Left
.
Lifts a pure exception in to the error mode of the F
effect.
Lifts a pure exception in to the error mode of the F
effect.
Computes an F[B]
from A
value(s) in an F[A]
.
Computes an F[B]
from A
value(s) in an F[A]
.
Lifts a pure value in to the F
effect.
Lifts a pure value in to the F
effect.
Returns an F[A]
that evaluates and runs the provided fa
on each run.
Returns an F[A]
that evaluates and runs the provided fa
on each run.
Evaluates the specified F[A]
, possibly asynchronously, and calls the specified
callback with the result of the evaluation.
Converts an F[A]
to an F[B]
using an effectful function F[A => B]
.
Converts an F[A]
to an F[B]
using an effectful function F[A => B]
.
Promotes a non-strict value to an F
.
Promotes a non-strict value to an F
.
Evaluates a
each time the returned effect is run.
Converts an F[A]
to an F[B]
using a pure function A => B
.
Monad which supports catching exceptions, suspending evaluation, and (potentially asynchronous) evaluation (i.e. extraction of a value).
For infix syntax, import
fs2.util.syntax._
.