Locking

@Blocking
@ApiStatus.Experimental
annotation class Locking(val when: String = "")

Marker class for future use, which will be used to indicate that the given function or property will block until the lock is freed (when it finishes the frame)

Parameters

when

if applied to a property, it is assumed that the lock is held when value is equal to when. else, the when property should be a simple statement regarding when the lock will be held.

Properties

Link copied to clipboard