Repeated

object Repeated
class Object
trait Matchable
class Any

Value members

Concrete methods

def run[F[_]](delay: Duration, iterationTimeout: Duration, errorHandler: Throwable => F[Unit])(task: F[Unit])(using evidence$1: Temporal[F]): Resource[F, F[Outcome[F, Throwable, Unit]]]

Creates a never ending process that will run task periodically. The resource provided has the same semantics as `Concurrent.background()``

Creates a never ending process that will run task periodically. The resource provided has the same semantics as `Concurrent.background()``

Value Params
delay

Delay between each run of task

errorHandler

handler called when `task fails or during timeout

iterationTimeout

timeout applied to task, ideally it should be lower than delay

task

effect that will be run periodically