Skip to main content

claim_shell_block

Function claim_shell_block 

Source
pub(super) async fn claim_shell_block(
    state: &AppState,
    req: &PtyShellCreateRequest,
    block: Block,
    child_id: &str,
    connection: &str,
) -> Result<Block, Response>
Expand description

Insert the new shell block and point the agent’s block at it, unless another call got there first, in which case that call’s shell is attached to instead (Err carries the response to return).