Packages

c

fs2.Scheduler

EffectOps

final class EffectOps extends AnyVal

Operations on a scheduler which return effectful values.

Source
Scheduler.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EffectOps
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from EffectOps to any2stringadd[EffectOps] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EffectOps, B)
    Implicit
    This member is added by an implicit conversion from EffectOps to ArrowAssoc[EffectOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def delay[F[_], A](fa: F[A], d: FiniteDuration)(implicit F: Async[F], ec: ExecutionContext): F[A]

    Returns an action that when run, sleeps for duration d and then evaluates fa.

    Returns an action that when run, sleeps for duration d and then evaluates fa.

    Note: prefer scheduler.delay(Stream.eval(fa), d) over Stream.eval(scheduler.effect.delay(fa, d)) as the former can be interrupted while delaying.

  8. def delayCancellable[F[_], A](fa: F[A], d: FiniteDuration)(implicit F: Effect[F], ec: ExecutionContext): F[(F[Option[A]], F[Unit])]

    Starts a timer for duration d and after completion of the timer, evaluates fa.

    Starts a timer for duration d and after completion of the timer, evaluates fa. Returns a "gate" value which allows semantic blocking on the result of fa and an action which cancels the timer. If the cancellation action is invoked before the timer completes, the gate completes with None. Otherwise, the gate completes with Some(a).

  9. def ensuring(cond: (EffectOps) ⇒ Boolean, msg: ⇒ Any): EffectOps
    Implicit
    This member is added by an implicit conversion from EffectOps to Ensuring[EffectOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (EffectOps) ⇒ Boolean): EffectOps
    Implicit
    This member is added by an implicit conversion from EffectOps to Ensuring[EffectOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): EffectOps
    Implicit
    This member is added by an implicit conversion from EffectOps to Ensuring[EffectOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): EffectOps
    Implicit
    This member is added by an implicit conversion from EffectOps to Ensuring[EffectOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from EffectOps to StringFormat[EffectOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  14. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def sleep[F[_]](d: FiniteDuration)(implicit F: Async[F], ec: ExecutionContext): F[Unit]

    Returns an action that when run, sleeps for duration d and then completes with Unit.

  17. def toString(): String
    Definition Classes
    Any
  18. def [B](y: B): (EffectOps, B)
    Implicit
    This member is added by an implicit conversion from EffectOps to ArrowAssoc[EffectOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from EffectOps to any2stringadd[EffectOps]

Inherited by implicit conversion StringFormat from EffectOps to StringFormat[EffectOps]

Inherited by implicit conversion Ensuring from EffectOps to Ensuring[EffectOps]

Inherited by implicit conversion ArrowAssoc from EffectOps to ArrowAssoc[EffectOps]

Ungrouped