- Companion:
- class
- Source:
- SafeEffect.scala
Type members
Inherited types
Value members
Inherited methods
try to execute an action an report any issue
try to execute an action an report any issue
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
Attempt to execute a safe action including finalizers
Attempt to execute a safe action including finalizers
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
get a resource A and use it. Call the release function whether an exception is thrown or not when using the resource
get a resource A and use it. Call the release function whether an exception is thrown or not when using the resource
NOTE: Eff interpreters are independent so if there is an effect short-circuiting all computations inside 'use', like Option or Either then the release function will not be called. If you want to make sure that the release function is always called "at the end of the world and whatever happens" you need to call Eff.bracketLast
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly having error effects
evaluate first action possibly having error effects
Execute a second action if the first one is not successful, based on the error
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
run a safe effect but drop the finalizer errors
run a safe effect but drop the finalizer errors
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
ignore one possible exception that could be thrown
ignore one possible exception that could be thrown
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly having exceptions
evaluate first action possibly having exceptions
Execute a second action if the first one is not successful
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly having error effects
evaluate first action possibly having error effects
Execute a second action if the first one is not successful and second is defined for the error
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
Run a safe effect
Run a safe effect
Collect finalizer exceptions if any
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
Memoize safe effects using a cache
Memoize safe effects using a cache
if this method is called with the same key the previous value will be returned
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions
evaluate first action possibly having error effects execute a second action whether the first is successful or not but keep track of finalizer exceptions
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly throwing exceptions
evaluate first action possibly throwing exceptions
Execute a second action if the first one is not successful, based on the exception
The final value type is the same as the original type
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala
evaluate first action possibly throwing exceptions
evaluate first action possibly throwing exceptions
Execute a second action if the first one is not successful and second is defined for the error
The final value type is the same as the original type
- Inherited from:
- SafeInterpretation
- Source:
- SafeEffect.scala