SupportCoroutineWorker
abstract class SupportCoroutineWorker(context: Context, workerParameters: WorkerParameters) : CoroutineWorker
A androidx.work.ListenableWorker implementation that provides interop with Kotlin Coroutines. Override the CoroutineWorker.doWork function to do your suspending work.
By default, CoroutineWorker runs on kotlinx.coroutines.Dispatchers.Default; this can be modified by wrapping the block of code in kotlinx.coroutines.withContext and providing the desired kotlinx.coroutines.Dispatchers
A CoroutineWorker is given a maximum of ten minutes to finish its execution and return a androidx.work.ListenableWorker.Result. After this time has expired, the worker will be signalled to stop.
Since
v0.9.X
Functions
Link copied to clipboard
A suspending method to do your work. This function runs on the coroutine context specified by coroutineContext.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard