FnRunner

ca.dvgi.periodic.FnRunner
See theFnRunner companion object
class FnRunner[F[_], R[_]](periodic: Periodic[F, R])(fn: => F[FiniteDuration], fnAttemptStrategy: AttemptStrategy, fnName: String, initialDelay: FiniteDuration) extends AutoCloseable

A FnRunner executes a side-effecting function periodically. The FiniteDuration returned from the function determines the delay before the next run.

Failed runs may be retried with various configurations.

Value parameters

fn

The side-effecting function to run periodically

fnAttemptStrategy

Configuration for retrying runs on failure

fnName

A human-friendly description of the function, used in logging

initialDelay

If specified, the first run of the function will be delayed this much

periodic

A Periodic instance used to run the function

Attributes

Companion
object
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable