Skip to content

Instantly share code, notes, and snippets.

@ceruleanotter
Last active June 25, 2022 14:12
Show Gist options
  • Save ceruleanotter/fa95d0c433585be597cd00b0e490f3fb to your computer and use it in GitHub Desktop.
Save ceruleanotter/fa95d0c433585be597cd00b0e490f3fb to your computer and use it in GitHub Desktop.
WorkManager Basics: Simple Chain Example
WorkManager.getInstance()
.beginWith(Arrays.asList(
filterImageOneWorkRequest,
filterImageTwoWorkRequest,
filterImageThreeWorkRequest))
.then(compressWorkRequest)
.then(uploadWorkRequest)
.enqueue()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment