zio.blocking
Type members
Classlikes
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.
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.
Value members
Concrete methods
Locks the specified effect to the blocking thread pool.
Locks the specified effect to the blocking thread pool.
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.
Imports a synchronous effect that does blocking IO into a pure value,
refining the error type to [[java.io.IOException]]
.
Imports a synchronous effect that does blocking IO into a pure value,
refining the error type to [[java.io.IOException]]
.
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
.
Note that this adds significant overhead. For performance sensitive
applications consider using effectBlocking
or effectBlockingCancel
.