An ExitCase that signals successful completion.
An ExitCase that signals successful completion.
Note that "successful" is from the type of view of the
MonadError
type that's implementing Bracket.
When combining such a type with EitherT
or OptionT
for
example, this exit condition might not signal a successful
outcome for the user, but it does for the purposes of the
bracket
operation.
Converts from Scala's Either
, which is often the result of
MonadError
's attempt
operation, into an ExitCase.
Alias for Canceled(None)
.
Alias for Canceled(Some(e))
.
Parametrized alias for the Completed data constructor.
Alias for the Error data constructor.