Packages

p

zio

blocking

package blocking

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. blocking
  2. Service
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Blocking extends Serializable

    The Blocking module provides access to a thread pool that can be used for performing blocking operations, such as thread sleeps, synchronous socket/file reads, and so forth.

    The Blocking module provides access to a thread pool that can be used for performing blocking operations, such as thread sleeps, synchronous socket/file reads, and so forth. The contract is that the thread pool will accept unlimited tasks (up to the available memory) and continuously create new threads as necessary.

Abstract Value Members

  1. abstract def blockingExecutor: ZIO[Blocking, Nothing, Executor]

    Retrieves the executor for all blocking tasks.

    Retrieves the executor for all blocking tasks.

    Definition Classes
    Service
  2. abstract def getClass(): Class[_]
    Definition Classes
    Any

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def blocking[R1 <: Blocking, E, A](zio: ZIO[R1, E, A]): ZIO[R1, E, A]

    Locks the specified effect to the blocking thread pool.

    Locks the specified effect to the blocking thread pool.

    Definition Classes
    Service
  6. def effectBlocking[A](effect: ⇒ A): ZIO[Blocking, Throwable, A]

    Imports a synchronous effect that does blocking IO into a pure value.

    Imports a synchronous effect that does blocking IO into a pure value.

    If the returned ZIO is interrupted, the blocked thread running the synchronous effect will be interrupted via Thread.interrupt.

    Definition Classes
    Service
  7. def effectBlockingCancelable[A](effect: ⇒ A)(cancel: UIO[Unit]): ZIO[Blocking, Throwable, A]

    Imports a synchronous effect that does blocking IO into a pure value, with a custom cancel effect.

    Imports a synchronous effect that does blocking IO into a pure value, with a custom cancel effect.

    If the returned ZIO is interrupted, the blocked thread running the synchronous effect will be interrupted via the cancel effect.

    Definition Classes
    Service
  8. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  9. def hashCode(): Int
    Definition Classes
    Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def toString(): String
    Definition Classes
    Any
  12. object Blocking extends Serializable

Deprecated Value Members

  1. def interruptible[A](effect: ⇒ A): ZIO[Blocking, Throwable, A]

    Imports a synchronous effect that does blocking IO into a pure value.

    Imports a synchronous effect that does blocking IO into a pure value.

    If the returned IO is interrupted, the blocked thread running the synchronous effect will be interrupted via Thread.interrupt.

    Definition Classes
    Service
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use effectBlocking()

Inherited from Service[Blocking]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped