Skip to main content

independent

Attribute Macro independent 

Source
#[independent]
Expand description

Hint on a for loop: the programmer asserts that an iteration’s awaited work does not depend on what earlier iterations wrote, so psync may run it ahead even where it cannot prove that. On a statement: its effects on outside resources commute with those of the statements around it (two writes to different objects through one client), so they need not keep their order.

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.