object HotswapRefConstructor
- Companion:
- class
Value members
Concrete methods
def apply[F[_] : Concurrent, I, R](initial: I)(make: I => Resource[F, R]): Resource[F, HotswapRefConstructor[F, I, R]]
Creates a new HotswapRefConstructor initialized using initial
and make
. The HotswapRefConstructor
instance is returned within a cats.effect.kernel.Resource.
Creates a new HotswapRefConstructor initialized using initial
and make
. The HotswapRefConstructor
instance is returned within a cats.effect.kernel.Resource.
- Value parameters:
- initial
the initial value of input
I
to be used to constructR
- make
used to construct a cats.effect.kernel.Resource of
R
fromI
, called on construction and whenswapWith
is used.