79216373

Date: 2024-11-22 19:42:48
Score: 0.5
Natty:
Report link

If A() happens to return some value and that return value is handle by suspend fun B() you can simply do this:

suspend fun A() {
        return coroutineScope {
            
            return@coroutineScope B() // here your returning B() 
        }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Giovanny PiƱeros