Grantas33
11/01/2020, 4:08 PMlouiscad
11/01/2020, 4:27 PMZach Klippenstein (he/him) [MOD]
11/01/2020, 6:41 PMGrantas33
11/01/2020, 11:08 PMlouiscad
11/02/2020, 2:04 AMinline fun trackFunction(block: () -> Unit) {
try {
println("entered")
block()
} finally {
println("exited")
}
}
suspend fun whatever() {
trackFunction {
doStuff()
val result = doOtherStuff()
if (result.isNotWhatIWant) {
return
}
}
}
Grantas33
11/02/2020, 9:05 PMZach Klippenstein (he/him) [MOD]
11/02/2020, 9:53 PM