Thanks <@U4UGS5FC7>! Great explanation. I understa...
# arrow
s
Thanks @raulraja! Great explanation. I understand that all
suspend
functions are un-pure, have a side effect (just by the virtue of being suspendable). But a non suspend (regular) function can still be un-pure, have side effects. Still, the IDE reports warnings for
suspend
functions that do not call other suspend functions. E.g.
Copy code
suspend fun testing () = Thread.currentThread().name
will warn you that the
suspend
modifier is redundant. Maybe that warning should be deprecated… 🙂 ?