Hold

class Hold[F[_], A](setter: A => F[Unit], duration: Option[FiniteDuration], cancelToken: Ref[F, Option[F[Unit]]], buffer: Ref[F, Option[A]])(implicit evidence$1: Async[F])

Encapsulates an effectful setter. When enable is called, calls to setter will be delayed for duration. Each call to enable resets the internal timer, i.e: duration is guaranteed to have elapsed since last call to enable before calling setter.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def set(a: A): F[Unit]

Concrete fields

val enable: F[Unit]