-
-
Save akueisara/9ecaf5134a46c3320b39e4233af397a1 to your computer and use it in GitHub Desktop.
WorkManager Basics: Simple Chain Example
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
WorkManager.getInstance() | |
// These three work requests run in parallel | |
.beginWith(Arrays.asList( | |
filterImageOneWorkRequest, | |
filterImageTwoWorkRequest, | |
filterImageThreeWorkRequest)) | |
// The output from the filter WorkRequests | |
// will be passed as the input of compress WorkRequest | |
.then(compressWorkRequest) | |
.then(uploadWorkRequest) | |
.enqueue() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment