Patrick Ramsey
06/16/2021, 1:25 AMsuspend inline function (ie, inline fun <T> foo(() -> T) {} works in a suspend context; inline fun foo(() -> Int) {} does not). Am I correct about that? And if so, out of curiosity, what’s the implementation reason?ephemient
06/16/2021, 1:33 AMinline fun foo(f: () -> Int) should work just fine in suspending contextPatrick Ramsey
06/16/2021, 1:40 AMPatrick Ramsey
06/16/2021, 1:46 AMPatrick Ramsey
06/16/2021, 3:02 AM