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])(`evidence$1`: Concurrent[F], `evidence$2`: Timer[F]): Resource[F, F[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 thandelay
- task
effect that will be run periodically