Last active
July 1, 2018 05:19
-
-
Save sriramr98/dc8f50f8e8609787ccdf88d609cdefad to your computer and use it in GitHub Desktop.
Worker example for a medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TasksRefreshWorker : Worker() { | |
override fun doWork(): Result { | |
// this method performs a task | |
doSomeLongRunningTask() | |
return Worker.Result.SUCCESS | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment