I'm not sure how I feel about two syntax mechanism...
# arrow
b
I'm not sure how I feel about two syntax mechanisms for effects -
suspend () -> T
vs.
IO<T>
p
IO is an API entry point for operations that cannot be done with suspend: wrap asynchronous code, jump threads, resource management, cancelation
In the article I published I stablished that you can write most of the code up to the entry point just with suspend functions and nothing else: https://www.pacoworks.com/2019/12/15/kotlin-coroutines-with-arrow-fx/