final case class Local[A](finalizerCount: AtomicInteger, exitValue: AtomicReference[A], references: AtomicInteger) extends ZScope[A] with Product with Serializable
- Self Type
- Local[A]
- Alphabetic
- By Inheritance
- Local
- Serializable
- Product
- Equals
- ZScope
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Local(finalizerCount: AtomicInteger, exitValue: AtomicReference[A], references: AtomicInteger)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def child: UIO[Either[A, Open[A]]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def deny(key: => Key): UIO[Boolean]
Prevents a previously added finalizer from being executed when the scope is closed.
Prevents a previously added finalizer from being executed when the scope is closed. The returned effect will succeed with
trueif the finalizer will not be run by this scope, andfalseotherwise.- Definition Classes
- ZScope
- def ensure(finalizer: (A) => UIO[Any], mode: Mode = ZScope.Mode.Strong): UIO[Either[A, Key]]
Adds a finalizer to the scope.
Adds a finalizer to the scope. If successful, this ensures that when the scope exits, the finalizer will be run, assuming the key has not been garbage collected.
The returned effect will succeed with
Rightwith a key if the finalizer was added to the scope orLeftwith the value the scope was closed with if the scope is already closed. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def extend(that: ZScope[Any]): UIO[Boolean]
Extends the specified scope so that it will not be closed until this scope is closed.
Extends the specified scope so that it will not be closed until this scope is closed. Note that extending a scope into the global scope will result in the scope *never* being closed!
Scope extension does not result in changes to the scope contract: open scopes must *always* be closed.
- Definition Classes
- ZScope
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isClosed: UIO[Boolean]
Determines if the scope is closed at the instant the effect executes.
- def isEmpty: UIO[Boolean]
Determines if the scope is empty (has no finalizers) at the instant the effect executes.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOpen: UIO[Boolean]
Determines if the scope is open at the moment the effect is executed.
Determines if the scope is open at the moment the effect is executed. Returns an effect that will succeed with
trueif the scope is open, andfalseotherwise.- Definition Classes
- ZScope
- def isReleased: UIO[Boolean]
Determines if the scope has been released at the moment the effect is executed executed.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def release: UIO[Boolean]
- def strongFinalizers: Map[Key, OrderedFinalizer]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def weakFinalizers: Map[Key, OrderedFinalizer]