FreeScalaDSL
Type members
Classlikes
Value members
Methods
- Definition Classes
- Definition Classes
- Definition Classes
Inherited methods
- Inherited from
- ScalaDSL
Performs a (potentially) effectful operation on a resource, producing some output.
- Type Params
- A
additional parameter of the operation
- B
additional output of the operation
- R
type of the resource
- Value Params
- f
the effectful operation
- Inherited from
- ScalaDSL
Releases a resource using the given function. The release function previously registered during resource
acquisition is not used.
- Type Params
- A
additional parameter of the release function
- B
additional data produced by the release function
- R
type of the resource
- Value Params
- f
the release function
- Inherited from
- ScalaDSL
- Inherited from
- ScalaDSL
- Inherited from
- ScalaDSL
Transforms a resource into a resource of (possibly) different type.
- Type Params
- A
additional parameter of the transformation
- B
additional output of the transformation
- R
type of the input resource
- S
type of the output resource
- Value Params
- f
the transformation function. It receives the input resource and additional input of type A. It returns the new resource and additional output of type B.
- release
called to release the new resource in case of a crash.
Nonemeans no cleanup is needed
- Inherited from
- ScalaDSL
- Inherited from
- ScalaDSL
Acquires a resource of type R. Might fail with an error of type E.
- Type Params
- A
parameters of the
acquirefunction- B
additional data produced by acquiring the resource
- E
type of the error
- R
type of the resource
- Value Params
- release
called to release the resource in case of a crash.
Nonemeans no cleanup is needed
- Inherited from
- ScalaDSL
- Inherited from
- ScalaDSL
Transforms a resource into a resource of (possibly) different type. Might fail with an error of type E.
- Type Params
- A
additional parameter of the transformation
- B
additional output of the transformation
- E
type of the error
- R
type of the input resource
- S
type of the output resource
- Value Params
- f
the transformation function. It receives the input resource and additional input of type A. It returns either an error of type E or the new resource and additional output of type B. In case the transformation results in an error, the original resource is ''not'' released automatically— the passing of the original resource
Rto the transformation functionfindicates transfer of responsibility for the resource to the functionf.- release
called to release the new resource in case of a crash.
Nonemeans no cleanup is needed
- Inherited from
- ScalaDSL