Reloadable

zio.Reloadable
See theReloadable companion object
final case class Reloadable[Service](scopedRef: ScopedRef[Service], reload: IO[Any, Unit])

A Reloadable is an implementation of some service that can be dynamically reloaded, or swapped out for another implementation on-the-fly.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def get(implicit trace: Trace): UIO[Service]

Retrieves the current version of the reloadable service.

Retrieves the current version of the reloadable service.

Attributes

def reloadFork(implicit trace: Trace): UIO[Unit]

Forks the reload of the service in the background, ignoring any errors.

Forks the reload of the service in the background, ignoring any errors.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product