← All compilation units

Flyology.IO.Timers

Description

Exposes lane-neutral timer waits through standard Ada delay semantics.

Example:

Flyology.IO.Timers.Sleep_For (0.010);

Sleep_For

procedure Sleep_For (Interval : Duration)

Wait for Interval seconds. A nonpositive interval is one delay 0.0 yield. A lightweight task suspends on its event loop; a native task uses the runtime's native delay wait and blocks that task's thread.

Parameters
Interval

Relative delay in seconds

Sleep_Until

procedure Sleep_Until (Deadline : Ada.Real_Time.Time)

Wait until the monotonic real-time Deadline. A past deadline returns at the next scheduling point. Lane blocking behavior matches Sleep_For.

Parameters
Deadline

Absolute Ada.Real_Time deadline