Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cancel a task based on its identity
WorkManager.getInstance(context).cancelAllWorkByTag(Constants.TAG_SYNC)
WorkManager.getInstance(context).cancelUniqueWork(Constants.UNIQUE_NAME)
WorkManager.getInstance(context).cancelWorkById(UUID.fromString(Constants.UNIQUE_UDID))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment