Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Created September 15, 2019 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/e8b1724731a295a0080e12367f94290d to your computer and use it in GitHub Desktop.
Save magdamiu/e8b1724731a295a0080e12367f94290d to your computer and use it in GitHub Desktop.
Unique work chain
WorkManager.getInstance()
.beginUniqueWork(Constants.UNIQUE_NAME, ExistingWorkPolicy.REPLACE, task1)
.then(task2)
.then(task3)
.enqueue()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment