pub type ConditionalRouter = Arc<dyn Fn(State) -> Pin<Box<dyn Future<Output = Result<Route>> + Send>> + Send + Sync>;Expand description
Async routing function for a conditional edge: reads the post-barrier state and decides where the run goes next.
Produced by GraphBuilder::add_conditional_edges from any
Fn(State) -> impl Future<Output = Result<Route>>.
Aliased Type§
pub struct ConditionalRouter { /* private fields */ }