Package kr.toxicity.model.api.util.lock


package kr.toxicity.model.api.util.lock
Contains lightweight lock helpers used by model state code.

Lock types provide simple single and duplex locking contracts for places that need explicit state protection without exposing implementation-specific synchronization details through higher-level APIs.

Example:

SingleLock lock = new SingleLock();
var value = lock.accessToLock(() -> "model");
Since:
3.2.0