Skip to main content

decide

Function decide 

Source
async fn decide(
    state: &AppState,
    ctx: &RpcContext,
    id: String,
    run: fn(&AppState, &str, &str, i64) -> Result<Ran, String>,
) -> Result<DreamDecisionResult, String>
Expand description

The three decisions run on a blocking thread: they read and write files and the record.