LeoColman
03/05/2019, 7:54 PMfun foo(fn: () -> Unit) {}
suspend fun foo(fn: suspend () -> Unit) {}
but in the same packageserebit
03/05/2019, 7:56 PMLeoColman
03/05/2019, 7:57 PMLeoColman
03/05/2019, 7:58 PMLeoColman
03/05/2019, 7:58 PMLeoColman
03/05/2019, 7:58 PMserebit
03/05/2019, 7:59 PMfoo
and the other fooBlocking
LeoColman
03/05/2019, 7:59 PMcbruegg
03/05/2019, 8:04 PMsuspend
function actually has an implicit Continuation
parameter. But the caller can't distinguish, exactly.LeoColman
03/05/2019, 8:04 PMLeoColman
03/05/2019, 8:05 PMfoo
with fn
, so that doesn't work.LeoColman
03/05/2019, 8:05 PM