io.catbird.util.effect
Can be used to construct a cats.effect.Timer instance for Rerunnable which let's you delay execution or retrieve the current time via RerunnableClock.
cats.effect.Timer
Rerunnable
RerunnableClock
Usage:
// In a Finagle application implicit val timer: Timer[Rerunnable] = RerunnableTimer(com.twitter.finagle.util.DefaultTimer) // In tests (for instant execution of delays) implicit val timer: Timer[Rerunnable] = RerunnableTimer(com.twitter.util.Timer.Nil) // A dedicated `JavaTimer` implicit val timer: Timer[Rerunnable] = RerunnableTimer()
Can be used to construct a
cats.effect.Timer
instance forRerunnable
which let's you delay execution or retrieve the current time viaRerunnableClock
.Usage: