Function0ToLayerSyntax

final implicit class Function0ToLayerSyntax[A](self: () => A)(implicit evidence$1: Tag[A])
class Object
trait Matchable
class Any

Value members

Concrete methods

def toLayer[A1 >: A : Tag]: URLayer[Any, Has[A1]]

Converts this function to a Layer.

Converts this function to a Layer.

case class FooLive() extends Foo

val live: ULayer[Has[Foo]] =
 FooLive.toLayer