Skip to main content

request

Function request 

Source
pub fn request(
    state: &AppState,
    block_id: &str,
    by: &str,
    via: &str,
    reason: &str,
    action: Action,
) -> PendingView
Expand description

Ask to shut block_id down, subject to the user’s override. A request already pending — or under way — for the block is joined instead: the clock never restarts, and no second window opens beside it (ReAgent P1 on #3789: a second banner’s Keep running could not stop the first). A joiner whose action does more (see Action::rank) replaces the pending action and is named on the banner, so nobody is told the outcome of less than they asked for (ReAgent P1 on #3798). The returned view says whose request it is: a caller whose by/via differ has joined someone else’s.