Reloadable

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.

Companion:
object
trait Product
trait Equals
class Object
trait Matchable
class Any

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.

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.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product