final class TofuBracketOps[F[_], A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TofuBracketOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TofuBracketOps(fa: F[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bracketAlways[B, C](use: (A) ⇒ F[B])(release: (A) ⇒ F[C])(implicit FG: Guarantee[F]): F[B]
Apply function to fa with effectful transformation.
-
def
bracketIncomplete[B, C](use: (A) ⇒ F[B])(release: (A) ⇒ F[C])(implicit F: Applicative[F], FG: Guarantee[F]): F[B]
Apply function to fa with effectful transformation.
-
def
bracketOpt[B, C](use: (A) ⇒ F[B])(release: (A, Boolean) ⇒ F[C])(implicit FG: Guarantee[F]): F[B]
Use value contained in fa.
-
def
bracketReplace[B](use: (A) ⇒ F[A])(commit: (A) ⇒ F[B])(implicit FG: Guarantee[F], A: Applicative[F]): F[A]
Replace value in fa.
-
def
bracketState[B, C](use: (A) ⇒ F[(A, B)])(commit: (A) ⇒ F[C])(implicit FG: Guarantee[F], A: Applicative[F]): F[B]
Update value in fa while producing additional one.
- val fa: F[A]
-
def
finallyCase[Ex[_], B, C](use: (A) ⇒ F[B])(release: (A, Ex[B]) ⇒ F[C])(implicit FG: Finally[F, Ex]): F[B]
Update value in fa and then release with respect to exit cause.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
guaranteeAlways[B](release: F[B])(implicit F: Applicative[F], FG: Guarantee[F]): F[A]
Guarantee finalization of fa.
- def guaranteeIf[B](fb: (Boolean) ⇒ F[B])(implicit FG: Guarantee[F], F: Applicative[F]): F[A]
-
def
guaranteeIncomplete[B](release: F[B])(implicit F: Applicative[F], FG: Guarantee[F]): F[A]
Guarantee finalization of fa.
-
def
guaranteeOpt[B](release: (Boolean) ⇒ F[B])(implicit F: Applicative[F], FG: Guarantee[F]): F[A]
Guarantee finalization of fa.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any