Skip to main content

gather

Function gather 

Source
pub fn gather(
    tasks: &[Task],
    sessions: &[Session],
    settings: &Settings,
    choices: &PlanningSettings,
    events: &dyn Fn(i64, i64) -> Vec<Occurrence>,
    now: &Zoned,
) -> Record
Expand description

The record read and weighed as of now: the ratings said after tasks, the ratio of time spent to first guesses, the days before (their tasks, sessions, events and outcomes) with the budgets replayed over them, the events of the coming weeks; and what the plan is given (Planning). Events of the past are read only once an outcome was given; events reads those between two instants (agenda::occurrences, or a cache of it).