Wait for a condition from false to true when executing a specific code.
This is generally equivalent to assert(!test); run(); wait(test); but helps prevent mistakes if the two test conditions weren't identical, or if they became true because of another side effect rather than the run() function.
A function that should resolve to falsy value before run() is invoked (tested immediatley and after one tick), and to a truthy value once run() has completed
Wait for a condition from false to true when executing a specific code.
This is generally equivalent to
assert(!test); run(); wait(test);
but helps prevent mistakes if the two test conditions weren't identical, or if they became true because of another side effect rather than the run() function.