I used arrow.kt
library so many times, I really enjoyed the features they gave to extend kotlin. I like how Either<E,T>
can represent the success/failed states seamlessly. I am just wondering if arrow.kt
has a way to represent loading state along with the other two. In other word, we will have a type that offers three states: Success
, Failure
, Loading
.
I tried to use Option<T>
as right member, but None
can't represent loading state as required.
Is there any thing I can try?