- All Superinterfaces:
Applicative<RIO<R,?>>, ApplicativeError<RIO<R,?>,Throwable>, Bracket<RIO<R,?>,Throwable>, Functor<RIO<R,?>>, Invariant<RIO<R,?>>, Monad<RIO<R,?>>, MonadError<RIO<R,?>,Throwable>, RIOMonad<R>, RIOMonadError<R>, RIOPure<R>, Selective<RIO<R,?>>
- All Known Subinterfaces:
RIOAsync<R>, RIOConcurrent<R>, RIOMonadDefer<R>
-
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<RIO<R,?>,? extends A> acquire,
Function1<? super A,? extends Kind<RIO<R,?>,? extends B>> use,
Function1<? super A,? extends Kind<RIO<R,?>,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.typeclasses.Functor
imap, lift
Methods inherited from interface com.github.tonivade.purefun.instances.RIOMonad
flatMap
Methods inherited from interface com.github.tonivade.purefun.instances.RIOPure
pure
-
Method Details
-
bracket
default <A,
B> RIO<R,B> bracket(Kind<RIO<R,?>,? extends A> acquire,
Function1<? super A,? extends Kind<RIO<R,?>,? extends B>> use,
Function1<? super A,? extends Kind<RIO<R,?>,Unit>> release)
- Specified by:
bracket in interface Bracket<RIO<R,?>,Throwable>