addamsson
08/08/2019, 9:11 AMJacques Smuts
08/08/2019, 9:13 AMaddamsson
08/08/2019, 9:14 AMaddamsson
08/08/2019, 9:14 AMaddamsson
08/08/2019, 9:14 AMaddamsson
08/08/2019, 9:14 AMaddamsson
08/08/2019, 9:15 AMJacques Smuts
08/08/2019, 9:19 AMsuspend fun doWrite(input): Result {}
and
fun doWriteSync(input): Result {
scope.launch{ doWrite(input) }
}
And the suspend function works fine and returns when it returns, but you want the synchronous blocking one to return only when the suspend one is done?addamsson
08/08/2019, 9:33 AMgildor
08/08/2019, 9:33 AMaddamsson
08/08/2019, 9:34 AMrunBlocking
addamsson
08/08/2019, 9:34 AMaddamsson
08/08/2019, 9:35 AMahulyk
08/08/2019, 9:44 AMgildor
08/08/2019, 9:46 AMgildor
08/08/2019, 9:46 AMDominaezzz
08/08/2019, 10:47 AMrunBlocking
.addamsson
08/08/2019, 11:03 AMaddamsson
08/08/2019, 11:04 AMaddamsson
08/08/2019, 11:04 AMaddamsson
08/08/2019, 11:04 AMaddamsson
08/08/2019, 1:03 PMPablichjenkov
08/08/2019, 2:42 PMChannel
api. It behaves as a blockingQueue basically, where you can send message/operations in a queue manner.addamsson
08/18/2019, 2:45 PM@Synchronized
😄