The OpenD Programming Language

ScheduledJobHelper

See schedule to make one of these. You then call one of the methods here to set it up:

schedule!fn(args).at(DateTime(2019, 8, 7, 12, 00, 00)); // run the function at August 7, 2019, 12 noon UTC
schedule!fn(args).delay(6.seconds); // run it after waiting 6 seconds
schedule!fn(args).asap(); // run it in the background as soon as the event loop gets around to it
version(with_breaking_cgi_features && with_addon_servers_connections)
struct ScheduledJobHelper {}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

asap
void asap()

Runs the job in the background ASAP.

at
void at(DateTime when, TimeZone timezone)

Schedules the job to be run at the given time.

delay
void delay(Duration delay)

Schedules the job to run at least after the specified delay.

Meta