getAndLock

suspend fun getAndLock(id: String, lockTime: Duration, common: CommonOptions = CommonOptions.Default): GetResult

Throws

if the document id is not found in the collection.