Aquires the resource for the Duration of a given function, The resource will automatically be opened and closed.
Aquires the resource for the Duration of a given function, The resource will automatically be opened and closed. The result will be returned immediately in an Either container. This container will hold all errors, if any occurred during execution, or the resulting value.
A function to execute against the raw resource.
The result of the function (right) or the list of exceptions seen during the processing of the resource (left).
Acquires the resource for the Duration of a given function, The resource will automatically be opened and closed.
Acquires the resource for the Duration of a given function, The resource will automatically be opened and closed. The result will be returned immediately, except in the case of an error. Upon error, the resource will be closed, and then the originating exception will be thrown.
Note: This method will throw the last exception encountered by the managed resource, whatever this happens to be.
A function to execute against the handle returned by the resource
The result of the passed in function
Creates a new resource that is the aggregation of this resource and another.
Creates a new resource that is the aggregation of this resource and another.
the other resource
A resource that is a tupled combination of this and that.
Acquires the resource for the Duration of a given function, The resource will automatically be opened and closed.
Acquires the resource for the Duration of a given function, The resource will automatically be opened and closed. The result will be returned immediately, except in the case of an error. Upon error, the resource will be closed, and then the originating exception will be thrown.
Note: This method will throw the last exception encountered by the managed resource, whatever this happens to be.
A function to execute against the handle returned by the resource
The result of the passed in function
This method is used to immediately perform operations on a resource while it is open, ensuring the resource is closed before returning.
This method is used to immediately perform operations on a resource while it is open, ensuring the resource is closed before returning.
The transformation function to apply against the raw resource.
A new ManagedResource with the translated type or some other type if an appropriate translator was found.
This method is used to immediately perform operations on a resource while it is open, ensuring the resource is closed before returning.
This method is used to immediately perform operations on a resource while it is open, ensuring the resource is closed before returning. Note: This method *will* open and close the resource, performing the body of the method immediately.
The function to apply against the raw resource.
This method is used to perform operations on a resource while the resource is open.
This method is used to perform operations on a resource while the resource is open.
The transformation function to apply against the raw resource.
A new ManagedResource with the translated type or some other type if an appropriate translator was found.
This method creates a Future that will perform operations within the context of an "open" resource.
This method creates a Future that will perform operations within the context of an "open" resource. Execution of Future will hold error as Failure, otherwise result will be inside a Success.
This class implements all ManagedResource methods except acquireFor. This allows all new ManagedResource implementations to be defined in terms of the acquireFor method.
the resource type