Model
CartMutex
Magento\Quote\Model\CartMutex
What it does
CartMutex provides a locking mechanism to prevent concurrent modifications to a shopping cart.
Developers use this class to wrap cart operations that need to be atomic, ensuring that only one process can modify a specific cart at a time.
This prevents race conditions and data corruption when multiple requests attempt to update the same cart simultaneously.
Public Methods
- execute()