Documentation
¶
Overview ¶
Package interleave is the contract between the offline pipeline runner and the nodes it may order by time. A non-realtime graph with several such sources advances the one whose next packet is earliest, so a run's output is the same on every run. The contract stays inside the module: no other package can name Token, so none can opt in by accident.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
Gate is a converging stage (pipeline.Admitter) whose arm bound the time order can enforce at the turn instead of in Admit: Arm names the arm msg, the *pipeline.Message being delivered, is a frame of (false for messages the stage never holds back), and Admits reports, without blocking, whether the stage would take more of that arm now. An ordered run never calls Admit on a Gate; it passes over a source whose arm is held back, so which source runs next is decided by the order, never by the Go scheduler.
type Ordering ¶
type Ordering struct {
Realtime, Buffered bool
Sources, TimedSources int
Converging, BlockingAdmitter, Merges bool
}
Ordering is the scheduling decision shared by the runtime and its planner. A plain blocking Admitter cannot participate: only Gate lets the scheduler inspect arm readiness without parking a delivery that holds the turn.