LeoColman
03/09/2019, 4:11 AMserebit
03/09/2019, 4:23 AMserebit
03/09/2019, 4:27 AMLeoColman
03/09/2019, 4:35 AMLeoColman
03/09/2019, 4:35 AMLeoColman
03/09/2019, 4:36 AMsuspend fun foo(other: suspend () -> Unit) { }
fun boo(func: () -> Unit) { }
LeoColman
03/09/2019, 4:37 AMLeoColman
03/09/2019, 4:37 AMfunc
will """""take"""" the context from the outside foo, and I'll be able to suspend anything inside it, due to the external foo
giving me the suspend contextLeoColman
03/09/2019, 4:37 AMLeoColman
03/09/2019, 4:38 AMboo
, wherever it's possible? (Consider a big amount of functions similar to boo in the codebase I'm working with)LeoColman
03/09/2019, 4:38 AMDico
03/09/2019, 6:31 AMDico
03/09/2019, 6:32 AMDico
03/09/2019, 6:33 AMLeoColman
03/09/2019, 6:39 AMLeoColman
03/09/2019, 6:39 AMlouiscad
03/09/2019, 9:08 AM