https://kotlinlang.org logo
#android
Title
# android
d

dave08

01/02/2019, 2:56 PM
Why are all the Android WorkManager ktx functions deprecated, is there any replacement? https://developer.android.com/reference/kotlin/androidx/work/ktx/package-summary
d

dewildte

01/02/2019, 4:10 PM
Coroutines? lol joking.
d

dave08

01/02/2019, 4:29 PM
Joking 🤔?
It's not documented, but there's a
CoroutineWorker
to derive from with
override suspend fun doWork(): Result
, nice no?
d

dewildte

01/02/2019, 5:02 PM
I (jokingly) implying that WorkManager is not needed in the light of Coroutines.
d

dave08

01/02/2019, 5:04 PM
They're two different concepts, WorkManager manages task scheduling in Android when your app is NOT running https://developer.android.com/topic/libraries/architecture/workmanager/basics
☝️ 7
d

dasz

01/30/2019, 4:50 PM
@dave08 even if it was killed manually by the user? it doesn't work on Xiaomi mi5 then