I hereby claim:
- I am iandebeer on github.
- I am jandebeer (https://keybase.io/jandebeer) on keybase.
- I have a public key ASDb_IZiLaO5fsPJ5wP_XBlOV39lrzgggqyoSCWuT1dv-Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
cats-effect Resource is extremely handy for managing the lifecycle of stateful resources, for example database or queue connections. It gives a main interface of:
trait Resource[F[_], A] {
/** - Acquire resource
* - Run f
* - guarantee that if acquire ran, release will run, even if `use` is cancelled or `f` fails