Skip to main content

Module deliver

Module deliver 

Source
Expand description

Telling observers what speccoder decided, at least once. Events are read from git (see super::events) past each observer’s cursor, oldest first; the cursor moves only after the observer took one (2xx, or exit 0). Whichever speccoder process runs delivers; a run does it beside its own work and never waits on an observer beyond a short grace at its end.

Structs§

Cursor
How far an observer got: the tips it has heard up to, and the saved attempts it heard.
Deliverer
A run’s deliverer: delivers beside the run; dropped, it gives what is pending at most GRACE. One per process — a feature run’s tasks share their run’s.
Delivery
What one delivery pass did.

Constants§

GRACE
How long a run waits for its last deliveries.

Functions§

has_cursor
Whether name has a cursor yet.
here
A cursor at what exists now: an observer hears what happens from here.
pass
Delivers what is pending for every trusted observer of the project at root, until deadline (if given).
pending
The events past cursor, oldest first per branch, then the stops.
send
Sends envelope to one observer: Ok with what it answered, or why not.
start_here
Starts name’s cursor at what exists now (a newly trusted observer).