LeoColman
03/09/2019, 4:11 AMserebit
03/09/2019, 4:23 AMLeoColman
03/09/2019, 4:35 AMsuspend fun foo(other: suspend () -> Unit) { }
fun boo(func: () -> Unit) { }
func
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 contextboo
, wherever it's possible? (Consider a big amount of functions similar to boo in the codebase I'm working with)Dico
03/09/2019, 6:31 AMLeoColman
03/09/2019, 6:39 AMlouiscad
03/09/2019, 9:08 AM