trait
Suspendable[F[_]] extends Monad[F]
Abstract Value Members
-
abstract
def
flatMap[A, B](a: F[A])(f: (A) ⇒ F[B]): F[B]
-
abstract
def
pure[A](a: A): F[A]
-
abstract
def
suspend[A](fa: ⇒ F[A]): F[A]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Suspendable[F], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
delay[A](a: ⇒ A): F[A]
-
-
-
-
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[A, B](a: F[A])(f: (A) ⇒ B): F[B]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
sequence[A](v: Seq[F[A]]): F[Vector[A]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
traverse[A, B](v: Seq[A])(f: (A) ⇒ F[B]): F[Vector[B]]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Suspendable[F], B)
Monad which supports capturing a deferred evaluation of a by-name
F[A]
.Evaluation is suspended until a value is extracted, typically via the
unsafeRunAsync
method on the related Effect type class or via a type constructor specific extraction method (e.g.,unsafeRunSync
onTask
). Side-effects that occur while evaluating a suspension are evaluated exactly once at the time of extraction.