implicit final class ZIOAutoCloseableOps[R, E, A <: AutoCloseable] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ZIOAutoCloseableOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def acquireReleaseWithAuto[R1 <: R, E1 >: E, B](use: (A) => ZIO[R1, E1, B])(implicit trace: Trace): ZIO[R1, E1, B]
Like
acquireReleaseWith
, safely wraps a use and release of a resource.Like
acquireReleaseWith
, safely wraps a use and release of a resource. This resource will get automatically closed, because it implementsAutoCloseable
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
- def withFinalizerAuto(implicit trace: Trace): ZIO[R with Scope, E, A]
Like
withFinalizer, add a finalizer from AutoClosable.