Alexjok
03/04/2019, 9:16 AMsuspend fun CoroutineScope.removeDuplicateTerminal(objectId: MutableList<Int>, token: String) = async { }
antonis
03/04/2019, 9:24 AMAlexjok
03/04/2019, 9:27 AMantonis
03/04/2019, 9:28 AMAlexjok
03/04/2019, 9:45 AMsuspend fun CoroutineScope.removeDuplicateTerminal(objectId: MutableList<Int>, token: String): Deferred<Unit>
tseisel
03/04/2019, 4:16 PMJob
instead of Deferred<Unit>
, replacing async
with launch
.
You can then job.join()
to wait for the coroutine to complete its work.Alexjok
03/04/2019, 5:27 PM