brane_plr::context

Type Alias Session

Source
pub type Session = (Instant, HashMap<String, String>);
Expand description

Defines a single “workflow” state of the planner.

This is used in the Context::state, which represents sessions of per-snippet workflow planning. This is used when REPL’ing a workflow, as every snippet needs to be planned individually but relies on where any intermediate results are generated in previous snippets. Context::state keeps track of the locations of these intermediate results, and this type defines every such session.

A session is simply a pair of the last time it was accessed (stale sessions g et removed by the garbage collector) and a map of intermediate results names to the domain where they are found.