Class

zio.ZScope

Local

Related Doc: package ZScope

Permalink

final case class Local[A](finalizerCount: AtomicInteger, exitValue: AtomicReference[A], references: AtomicInteger) extends ZScope[A] with Product with Serializable

Self Type
Local[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Local
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ZScope
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Local(finalizerCount: AtomicInteger, exitValue: AtomicReference[A], references: AtomicInteger)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def child: UIO[Either[A, Open[A]]]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def deny(key: ⇒ Key): UIO[Boolean]

    Permalink

    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 true if the finalizer will not be run by this scope, and false otherwise.

    Definition Classes
    ZScope
  8. def ensure(finalizer: (A) ⇒ UIO[Any], mode: Mode = ZScope.Mode.Strong): UIO[Either[A, Key]]

    Permalink

    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 Right with a key if the finalizer was added to the scope or Left with the value the scope was closed with if the scope is already closed.

    Definition Classes
    LocalZScope
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. final def extend(that: ZScope[Any]): UIO[Boolean]

    Permalink

    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
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def isClosed: UIO[Boolean]

    Permalink

    Determines if the scope is closed at the instant the effect executes.

    Determines if the scope is closed at the instant the effect executes. Returns an effect that will succeed with true if the scope is closed, and false otherwise.

    Definition Classes
    LocalZScope
  14. def isEmpty: UIO[Boolean]

    Permalink

    Determines if the scope is empty (has no finalizers) at the instant the effect executes.

    Determines if the scope is empty (has no finalizers) at the instant the effect executes. The returned effect will succeed with true if the scope is empty, and false otherwise.

    Definition Classes
    LocalZScope
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isOpen: UIO[Boolean]

    Permalink

    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 true if the scope is open, and false otherwise.

    Definition Classes
    ZScope
  17. def isReleased: UIO[Boolean]

    Permalink

    Determines if the scope has been released at the moment the effect is executed executed.

    Determines if the scope has been released at the moment the effect is executed executed. A scope can be closed yet unreleased, if it has been extended by another scope which is not yet released.

    Definition Classes
    LocalZScope
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def release: UIO[Boolean]

    Permalink
  22. def strongFinalizers: Map[Key, OrderedFinalizer]

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def weakFinalizers: Map[Key, OrderedFinalizer]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ZScope[A]

Inherited from AnyRef

Inherited from Any

Ungrouped