Packages

trait Service extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Service
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def lease: ZIO[Scope, LeaderElectionFailure[Nothing], Unit]

    Creates a managed lock implementing the leader election algorithm

Concrete Value Members

  1. def runAsLeader[R, E, A](f: ZIO[R, E, A]): ZIO[R, E, Option[A]]

    Runs the given effect by applying the leader election algorithm, with the guarantee that the inner effect will only run at once in the Kubernetes cluster.

    Runs the given effect by applying the leader election algorithm, with the guarantee that the inner effect will only run at once in the Kubernetes cluster.

    If you want to manage the lock as Scoped use lease

    f

    Inner effect to protect