io.catbird.util.effect
The goal here is to provide an implicit instance for ContextShift[Rerunnable], so you can use libraries like fs2 in a finagle-based application without converting between Future and IO everywhere.
ContextShift[Rerunnable]
fs2
Future
IO
Usage:
implicit val rerunnableCS: ContextShift[Rerunnable] = RerunnableContextShift.global
Mirrors the api of scala.concurrent.ExecutionContext.Implicit.global.
scala.concurrent.ExecutionContext.Implicit.global
import io.catbird.util.effect.RerunnableContextShift.Implicits.global
The goal here is to provide an implicit instance for
ContextShift[Rerunnable]
, so you can use libraries likefs2
in a finagle-based application without converting betweenFuture
andIO
everywhere.Usage: