ZManagedZIOSyntax

zio.managed.`package`.ZManagedZIOSyntax
final implicit class ZManagedZIOSyntax[R, E, A](self: ZIO[R, E, A])

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final def forkManaged(implicit trace: Trace): ZManaged[R, Nothing, Runtime[E, A]]

Forks the fiber in a ZManaged. Using the ZManaged value will execute the effect in the fiber, while ensuring its interruption when the effect supplied to ZManaged#use completes.

Forks the fiber in a ZManaged. Using the ZManaged value will execute the effect in the fiber, while ensuring its interruption when the effect supplied to ZManaged#use completes.

Attributes

Source
package.scala
final def toManaged(implicit trace: Trace): ZManaged[R, E, A]

Converts this ZIO to ZManaged with no release action. It will be performed interruptibly.

Converts this ZIO to ZManaged with no release action. It will be performed interruptibly.

Attributes

Source
package.scala
final def toManagedWith[R1 <: R](release: A => URIO[R1, Any])(implicit trace: Trace): ZManaged[R1, E, A]

Converts this ZIO to Managed. This ZIO and the provided release action will be performed uninterruptibly.

Converts this ZIO to Managed. This ZIO and the provided release action will be performed uninterruptibly.

Attributes

Source
package.scala