Skip to main content

fresh

Attribute Macro fresh 

Source
#[fresh]
Expand description

Hint on a let: each concurrent branch that uses this binding evaluates its initializer again instead of sharing the value, e.g. #[psync::fresh] let pool = &mut context.pool(); gives every branch its own pooled connection. Outside #[psync::graph], stable Rust rejects a custom attribute on a statement or expression (E0658): the graph macro removes it before the compiler sees it.