Manage an AutoClosable
.
Manage an AutoClosable
. This will call AutoClosable.close
during the
on-exception execution lifecycle. The on-finally lifecycle hook is a no-op.
the type of the resource passed to the applied expression
the resource the manage
a managed resource
Manage an AutoClosable
.
Manage an AutoClosable
. This will call AutoClosable.close
during the
on-finally execution lifecycle. The on-exception lifecycle hook is a no-op.
the type of the resource passed to the applied expression
the resource the manage
a managed resource
Manages a generic resource.
Manages a generic resource.
Requires an implicit CanManage[S]
in scope. A default manager for
AutoClosable
s is provided (See CanManage.CloseOnFinally
) and the
default behaviour is equivalently the same as closeOnFinally
the type of the resource passed to the applied expression
the type of the resource passed to the manager
the resource to managed passed by-name
a managed resource
Methods for management of a resource.
For implicit management see
io.tmos.arm.Implicits
.