fs2-core
fs2-core
fs2
fs2.concurrent
fs2.internal
fs2-core
/
fs2
/
Hotswap$
Hotswap
object
Hotswap
Companion
class
Graph
Super types
class
Object
trait
Matchable
class
Any
Value members
Value members
Methods
def
apply
[F <: ([_$2] =>>
Any
), R](initial:
Resource
[
F
,
R
])(evidence$1:
Concurrent
[
F
]):
Resource
[
F
, (
Hotswap
[
F
,
R
],
R
)]
Creates a new
Hotswap
initialized with the specified resource.
The
Hotswap
instance and the initial resource are returned.
def
create
[F <: ([_$3] =>>
Any
), R](evidence$2:
Concurrent
[
F
]):
Resource
[
F
,
Hotswap
[
F
,
R
]]
Creates a new
Hotswap
, which represents a
Resource
that can be swapped during the lifetime of this
Hotswap
.