final class EffectOps extends AnyVal
- Alphabetic
- By Inheritance
- EffectOps
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (EffectOps, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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 evaluatesfa
.Returns an action that when run, sleeps for duration
d
and then evaluatesfa
.Note: prefer
scheduler.delay(Stream.eval(fa), d)
overStream.eval(scheduler.effect.delay(fa, d))
as the former can be interrupted while delaying. -
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, evaluatesfa
.Starts a timer for duration
d
and after completion of the timer, evaluatesfa
. Returns a "gate" value which allows semantic blocking on the result offa
and an action which cancels the timer. If the cancellation action is invoked before the timer completes, the gate completes withNone
. Otherwise, the gate completes withSome(a)
. - def ensuring(cond: (EffectOps) ⇒ Boolean, msg: ⇒ Any): EffectOps
- def ensuring(cond: (EffectOps) ⇒ Boolean): EffectOps
- def ensuring(cond: Boolean, msg: ⇒ Any): EffectOps
- def ensuring(cond: Boolean): EffectOps
- def formatted(fmtstr: String): String
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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 withUnit
. -
def
toString(): String
- Definition Classes
- Any
- def →[B](y: B): (EffectOps, B)