fold
invoke
the Effect and fold the result:
This method should never be wrapped in try
/catch
as it will not throw any unexpected errors, it will only result in CancellationException, or fatal exceptions such as OutOfMemoryError
.
invoke
the Effect and fold the result:
This function re-throws any exceptions thrown within the Effect.
invoke
the EagerEffect and fold the result:
This method should never be wrapped in try
/catch
as it will not throw any unexpected errors, it will only result in CancellationException, or fatal exceptions such as OutOfMemoryError
.
invoke
the EagerEffect and fold the result:
This function re-throws any exceptions thrown within the Effect.
The most general way to execute a computation using Raise. Depending on the outcome of the block, one of the two lambdas is run:
This function re-throws any exceptions thrown within the Raise block.
The most general way to execute a computation using Raise. Depending on the outcome of the block, one of the three lambdas is run:
This method should never be wrapped in try
/catch
as it will not throw any unexpected errors, it will only result in CancellationException, or fatal exceptions such as OutOfMemoryError
.