Skip to main content

run_block

Function run_block 

Source
pub async fn run_block(gated: &[Gated], run: &mut Run<'_>) -> Result<Value>
Expand description

Runs statements together, so they are confirmed or undone as one.

A statement that confirms itself escapes the block. That is a property of the server and not a choice made here, so each such statement is declared as a gap rather than silently counted inside the promise.

ยงErrors

Returns the failure of the first statement that produced one, after asking the server to undo everything the block had done.