CatsIOResourceSyntax

final class CatsIOResourceSyntax[F[_], A](resource: Resource[F, A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def toScoped[R](implicit L: LiftIO[[_] =>> ZIO[R, Throwable, _$4]], F: Effect[F]): ZIO[R & Scope, Throwable, A]

Convert a cats Resource into a ZIO with a Scope. Beware that unhandled error during release of the resource will result in the fiber dying.

Convert a cats Resource into a ZIO with a Scope. Beware that unhandled error during release of the resource will result in the fiber dying.