Product Site

5.4.1.3. canceled/cancelled

Returns .true if the alarm was cancelled before triggering. Returns .false otherwise.

See also method cancel.

Example 5.217. Alarm class — canceled/cancelled method
alarm = .Alarm~new(1 ,.message~new(.stdout, "SAY", "I", "Alarm went off"))
call SysSleep 0.5
alarm~cancel
say "Alarm" alarm~cancelled~?("cancelled", "not cancelled")    -- Alarm cancelled