Repeated

com.avast.cloud.datadog4s.helpers.Repeated
object Repeated

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Repeated.type

Members list

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 parameters

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

Attributes