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.