- All Superinterfaces:
Applicative<EIO<E,?>>, ApplicativeError<EIO<E,?>,E>, Bracket<EIO<E,?>,E>, EIOMonad<E>, EIOMonadError<E>, EIOPure<E>, Functor<EIO<E,?>>, Invariant<EIO<E,?>>, Monad<EIO<E,?>>, MonadError<EIO<E,?>,E>, Selective<EIO<E,?>>
- All Known Subinterfaces:
EIOAsync, EIOConcurrent, EIOMonadDefer
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.typeclasses.Applicative
Applicative.Map2<F extends Kind<F,?>,A,B>, Applicative.Map3<F extends Kind<F,?>,A,B,C>, Applicative.Map4<F extends Kind<F,?>,A,B,C,D>, Applicative.Map5<F extends Kind<F,?>,A,B,C,D,E>
-
-
Method Summary
bracket(Kind<EIO<E,?>,? extends A> acquire,
Function1<? super A,? extends Kind<EIO<E,?>,? extends B>> use,
Function1<? super A,? extends Kind<EIO<E,?>,Unit>> release)
Methods inherited from interface com.github.tonivade.purefun.typeclasses.Applicative
first, last, mapN, mapN, mapN, mapN, mapN, mapN, mapN, mapN, tuple, tuple, tuple, tuple
Methods inherited from interface com.github.tonivade.purefun.instances.EIOMonad
flatMap
Methods inherited from interface com.github.tonivade.purefun.instances.EIOPure
pure
Methods inherited from interface com.github.tonivade.purefun.typeclasses.Functor
imap, lift
-
Method Details
-
bracket
default <A,
B> EIO<E,B> bracket(Kind<EIO<E,?>,? extends A> acquire,
Function1<? super A,? extends Kind<EIO<E,?>,? extends B>> use,
Function1<? super A,? extends Kind<EIO<E,?>,Unit>> release)
- Specified by:
bracket in interface Bracket<EIO<E,?>,E>