run_at (function f, integer time) ⇒ boolean
Runs a function or lambda function within a separate thread at a specific time in the form of an epoch time.
First available: Version 1.8.1
Notes
This function is similar to the Unix command at.
This function can be used nicely in conjunction with the time
function added in the same version.
ZPE 1.10.7+
ZPE 1.10.7 (Hasty Hyena) changed the way that the run_at command works, completely overhauling the system, making it more efficient.
It also is much easier to cancel, using the predefined interupt function on it:
YASS
function beeper() beep(random_number(1, 1000) * 1000, 1000)) end function //This will make a random beep in 10 seconds time $scheduled = run_in(handle_of("beeper"), time() + 10000) $scheduled->interupt()

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days.
Comments powered by BalfComment