Pure global admission state for editor-buffer parser synchronization.
The parser Port is single-threaded, so the manager admits one buffer snapshot or parse at a time. Repeated readiness signals coalesce by buffer PID.
Summary
Functions
Activates the next queued buffer when no work is active.
Returns whether the supplied buffer owns the active admission.
Associates a timeout token and timer with the active admission.
Queues a buffer once unless it is already active or queued.
Creates an empty scheduler.
Releases the matching active buffer.
Drops all active and queued admission state.
Returns whether a timeout belongs to the current active admission.
Returns the current admission timer reference.
Types
Functions
Activates the next queued buffer when no work is active.
Returns whether the supplied buffer owns the active admission.
Associates a timeout token and timer with the active admission.
Queues a buffer once unless it is already active or queued.
@spec new() :: t()
Creates an empty scheduler.
Releases the matching active buffer.
Drops all active and queued admission state.
Returns whether a timeout belongs to the current active admission.
Returns the current admission timer reference.