Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2022
What would you like to do?
When Jetpack's Glance met his fellow worker, Work Manager
override suspend fun doWork(): Result {
val article = api.getFromUsersSubscription().mapToEntity()
return try {
// Update the widget's text content.
// suspending function
updateWidget(article.title, context)
} catch(e: Exception) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment