package blocking
- Alphabetic
- By Inheritance
- blocking
- Service
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
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
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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 viaThread.interrupt
.- Definition Classes
- Service
-
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
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
- object Blocking extends Serializable
Deprecated Value Members
-
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 viaThread.interrupt
.- Definition Classes
- Service
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0) use effectBlocking()