Periodic: A low-dependency Scala library providing a cached variable that self-updates periodically, and a periodic function runner

Periodic is a low-dependency Scala library providing:

  • an in-memory cached variable (AutoUpdatingVar) that self-updates on a periodic basis
  • a periodic runner for a side-effecting function (FnRunner)

It attempts to provide an effect- and runtime-agnostic API which can abstract various implementations as needed. There is currently a JDK-based implementation and a Pekko Streams-based implementation.