acquireLock

abstract suspend fun acquireLock(id: String): KronoJob?

Atomically increment the locks counter on the job with this id. Returns the job or null if the document no longer exists. A null return signals that execution should be aborted.