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

Arguments

to
 T
the new value to be stored with 'h'
0.099dev (GIT hash a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03