oday
08/31/2022, 1:26 PMmkrussel
08/31/2022, 1:28 PMsimon.vergauwen
08/31/2022, 1:29 PMCompletableDeferred is probably what you're looking for. You can await it in a suspend way, or check it's state through getCompleted.
https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-completable-deferred/oday
08/31/2022, 1:31 PModay
08/31/2022, 1:32 PMmkrussel
08/31/2022, 1:32 PModay
08/31/2022, 1:32 PMsimon.vergauwen
08/31/2022, 1:33 PMsuspend fun without a return type should be better indeed.