Skip to main content

stop_before

Function stop_before 

Source
async fn stop_before(
    state: &AppState,
    block_id: &str,
    __arg2: (&str, &str),
    grant: &Grant,
    started: Instant,
    parts: &[&[KeyStep]],
    n: usize,
) -> Option<(String, bool)>
Expand description

Whether the call must stop before typing chunk n of parts, and why (with whether it is a secret prompt): over the time one call may type, the person paused the pane or ended the grant, or, from the second chunk, the page or terminal no longer passes (after a line, once the screen has caught up with it).