@spec cron(String.t()) :: :ok
@spec cron(String.t(), (-> out)) :: out when out: var
@spec heartbeat(String.t()) :: :ok
@spec heartbeat(String.t(), [{:continuous, boolean()}]) :: :ok