ReloadableSyntax

zio.macros.`package`.ReloadableSyntax
final implicit class ReloadableSyntax[Service](layer: ZLayer[Any, Any, Service]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def reloadable(implicit tag: Tag[Service], isReloadable: IsReloadable[Service], trace: Trace): ZLayer[ServiceReloader, Error, Service]

Returns a layer that constructs a version of the service output by this layer that can be dynamically reloaded with ServiceReloader.reload.

Returns a layer that constructs a version of the service output by this layer that can be dynamically reloaded with ServiceReloader.reload.

Attributes