class

Vug::SharedState

Inherits Reference < Object

Constructors

instance
Source

Class methods

instance=(value : self)
Source

Instance methods

semaphore(limit : Int32) : Semaphore

NOTE: The semaphore is process-wide and only the first-initialized limit is used. Subsequent calls to semaphore() with different limits are ignored. This is intentional to avoid the overhead of Atomic or additional Mutex.

Source