Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    process: &Process,
    current_phase: ProcessPhase,
    now: DateTime<Utc>,
) -> AutoTerminate
Expand description

Inspect a Process at the given current phase and return whether the ephemeral lifetime clock fires now.

now is injected so unit tests can drive the clock deterministically.