-->
import Quickshell
A RetainableLock provides extra safety and ease of use for locking Retainable objects. A retainable object can be locked by multiple locks at once, and each lock re-exposes relevant properties of the retained objects.
The code below will keep a retainable object alive for as long as the RetainableLock exists.
RetainableLock {
object: aRetainableObject
locked: true
}
If the object should be locked.
The object to lock. Must be Retainable.
If the object is currently in a retained state.
Rebroadcast of the object’s Retainable.aboutToDestroy().
Rebroadcast of the object’s Retainable.dropped().