Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The Contacts, Reborn library provides Kotlin coroutine extensions for all API functions to handle permissions and executing work in background threads
launch {
val contacts = Contacts(context)
.queryWithPermission()
...
.findWithContext()
val deferredResult = Contacts(context)
.insertWithPermission()
...
.commitAsync()
val result = deferredResult.await()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment