I'm reading "Kotlin Functional Programming I: Mona...
# arrow
r
I'm reading "Kotlin Functional Programming I: Monad Stack" blog article and I have a question. Instead of using
IO
to wraps side effects and make a function pure, can I use
DeferredKW
in the same way? Just for reference, from something like:
Reader<GetHeroesContext, IO<Either<Error, List<SuperHero>>>>
to:
Reader<GetHeroesContext, DeferredKW<Either<Error, List<SuperHero>>>>
ps: I already have a network library using retrofit that return data through
Deferred
, so it would be convenient.