Hotswap

cats.effect.std.Hotswap
See theHotswap companion trait
object Hotswap

Attributes

Companion
trait
Source
Hotswap.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Hotswap.type

Members list

Value members

Concrete methods

def apply[F[_] : Concurrent, R](initial: Resource[F, R]): Resource[F, (Hotswap[F, R], R)]

Creates a new Hotswap initialized with the specified resource.

Creates a new Hotswap initialized with the specified resource. The Hotswap instance and the initial resource are returned.

Attributes

Source
Hotswap.scala
def create[F[_], R](implicit F: Concurrent[F]): Resource[F, Hotswap[F, R]]

Creates a new Hotswap, which represents a cats.effect.kernel.Resource that can be swapped during the lifetime of this Hotswap.

Creates a new Hotswap, which represents a cats.effect.kernel.Resource that can be swapped during the lifetime of this Hotswap.

Attributes

Source
Hotswap.scala