FreeScalaDSL
Value members
Concrete methods
- Definition Classes
- Definition Classes
- Definition Classes
Inherited methods
- Inherited from
- ScalaDSL
Performs a (potentially) effectful operation on a resource, producing some output.
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
Factor out the factor A
on the left of both summands.
Factor out the factor A
on the left of both summands.
- Inherited from
- CoreDSL
Factor out the factor C
on the right of both summands.
Factor out the factor C
on the right of both summands.
- Inherited from
- CoreDSL
Releases a resource using the given function. The release
function previously registered during resource
acquisition is not used.
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.
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.
None
means no cleanup is needed
- Inherited from
- ScalaDSL
- Inherited from
- ScalaDSL
Acquires a resource of type R. Might fail with an error of type E.
Acquires a resource of type R. Might fail with an error of type E.
- Type Params
- A
parameters of the
acquire
function- 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.
None
means 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.
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
R
to the transformation functionf
indicates transfer of responsibility for the resource to the functionf
.- release
called to release the new resource in case of a crash.
None
means no cleanup is needed
- Inherited from
- ScalaDSL