Repeating

object Repeating
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def create[F[_]](effect: F[Unit], repeatDuration: FiniteDuration, runInParallel: Boolean)(implicit F: Concurrent[F], T: Temporal[F]): F[Repeating[F]]

see doc of [resource]

see doc of [resource]

def resource[F[_] : Temporal](effect: F[Unit], repeatDuration: FiniteDuration, runInParallel: Boolean): Resource[F, Repeating[F]]
Value parameters:
effect

the effect to be repeated

repeatDuration

duration between each repetition

runInParallel

run the effect in parallel. This will make the execution timing more accurate. Also it prevent pause from canceling the effect.