Alessandro Diaferia
02/14/2019, 3:09 PMdispatch_once in the Kotlin Coroutine world?marstran
02/14/2019, 3:14 PMantonis
02/14/2019, 3:16 PMAlessandro Diaferia
02/14/2019, 3:17 PMval someSetupJob by lazy {
async {
// do some complex initialization
}
}antonis
02/14/2019, 3:17 PMantonis
02/14/2019, 3:22 PMval myLazyValue = async(start = CoroutineStart.LAZY) { ... }. Use myLazyValue.await() when you need itantonis
02/14/2019, 3:22 PMAlessandro Diaferia
02/14/2019, 3:22 PMantonis
02/14/2019, 3:23 PM