https://kotlinlang.org logo
#arrow
Title
# arrow
h

HieiJ

05/21/2019, 7:49 PM
Thank you @raulraja for your reply, I understand that from a "definition" point of view this is right. Actually what I'm wondering is that, writing code, when using IO I'm very aware of when I'm composing side effects (using
flatMap
) and when I'm just concatenating a pure function with
map
. Inside a
suspend
functions, instead, just looking at the code there is no clear distinction between these two situations, the only way to understand what the code is doing is to look at the definition of every called function in order to check if it is a
suspend
one or not. Am I missing something?