Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DummyWorker to test Background Task Inspector
package com.example.background.workers
import android.content.Context
import android.os.SystemClock.sleep
import androidx.work.Worker
import androidx.work.WorkerParameters
class DummyWorker (ctx: Context, params: WorkerParameters) : Worker(ctx, params) {
override fun doWork(): Result {
sleep(1000)
return Result.success()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment