Skip to main content

Module atomic

Module atomic 

Source
Expand description

Checked atomic ledger updates shared by import and Native resource owners.

Rust 1.93.1 cannot use the renamed standard-library try_update API. Keep the same retry, previous-value and ordering contract using stable atomic operations.

Functionsยง

try_update_u64
Apply a checked update, returning the previous value on success or rejection.
try_update_usize
Apply a checked update, returning the previous value on success or rejection.