com.thoughtworks.raii.invariant
A container of a value and a function to release the value.
value
the monadic type of release
the type of value
This Resource will become a case class. Use Resource.apply instead of new Resource[F, A] { ... }.
new Resource[F, A] { ... }
Releases value and all resource dependencies during creating value.
After release, value should not be used if:
A container of a value and a function to release the
value
.the monadic type of release
the type of value
This Resource will become a case class. Use Resource.apply instead of
new Resource[F, A] { ... }
.