streetsofboston
01/25/2019, 8:10 PMsuspend
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.
suspend fun testing () = Thread.currentThread().name
will warn you that the suspend
modifier is redundant.
Maybe that warning should be deprecated… 🙂 ?