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

wait

mutate.wait

F 
type
:
Function,
condition F
)
 => 
unit
wait for the given condition to become true by a mutation of the underlying data.

In case this mutate is not a multi-thread implementation and `condition()` is `false`,
this will `panic`.
Precondition
pre
  safety: is_exclusive
Postcondition
post
  debug: condition()

Type Parameters

Arguments

condition
 F
0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
last changed: 2026-11-04