ZIOResourceSyntax

final class ZIOResourceSyntax[R, E <: Throwable, A](resource: Resource[[_] =>> ZIO[R, E, _$1], A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def toScopedZIO(implicit trace: Trace): ZIO[R & Scope, E, A]

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

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