MaybeSuspend2

izumi.functional.bio.unsafe.MaybeSuspend2
final class MaybeSuspend2[F[_, _]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def maybeSuspend[A](effect: => A)(implicit F: Applicative2[F]): F[Nothing, A]

Will suspend the computation if F is lazy. Or won't if it's not.

Will suspend the computation if F is lazy. Or won't if it's not.

Attributes