Resource, possibly built by composing multiple
Resources monadically, returns the acquired resource, as well
as an action that runs all the finalizers for releasing it.
Implementation for the
flatMap operation, as described via the
cats.Monad type class.
Allocates a resource and supplies it to the given function.
the function to apply to the allocated resource
the result of applying [F] to