android-components / mozilla.components.service.sync.logins / SyncableLoginsStore / withUnlocked

withUnlocked

suspend fun <T> withUnlocked(block: suspend (AsyncLoginsStorage) -> T): T (source)

Run some block which operates over an unlocked instance of AsyncLoginsStorage. Database is locked once block is done.

Exceptions

InvalidKeyException - if the provided key isn't valid.