Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

put_racy

mutate.var.put_racy

(to T)
 => 
unit
update mutable field with new value without any synchronization.

The write might be reordered resulting in the new value becoming visible
to other thread earlier or later.

This will use the effect `racy mutate.this` such that static analysis
of effects will detect and report code that uses racy accesses to mutable
variables.

Racy accesses are permitted only for types for which `mutate.this.atomic_access_supported T`
is true. This ensures that racy accesses do not yield crippled values such as an `i128`
consisting of lower and upper 64 bits that come from different values.
Precondition
pre
  safety: open
  safety: atomic_access_supported T
0.099dev (GIT hash 1bef408f37c37f3ff3417cdf772c6c40c76064ca)
last changed: 2026-09-17