Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Rong Cron Module
In-process cron helpers for RongJS.
This module intentionally schedules jobs inside the current Rong process. It does not register OS-level cron jobs.
JS APIs
Rong.cron.parse(expression, relativeDate?)
Alias: Bun.cron.parse(expression, relativeDate?)
Parse a five-field cron expression and return the next UTC Date after
relativeDate. If no future occurrence exists, returns null.
const next = .;
// Date | null
Arguments:
expression: five-field cron expression: minute, hour, day-of-month, month, day-of-week.relativeDate: optionalDateor epoch milliseconds. Defaults to now.
Supported conveniences:
- Nicknames:
@yearly,@annually,@monthly,@weekly,@daily,@midnight,@hourly. - Month and weekday names, including full names such as
JanuaryandMonday. - When both day-of-month and day-of-week are specified, matching uses OR semantics.
Rong.cron(schedule, handler)
Alias: Bun.cron(schedule, handler)
Synchronously register an in-process cron job and return a CronJob handle.
The handler may be sync or async. If it returns a Promise, Rong waits for it to
settle before considering that tick complete. If another tick arrives while the
previous handler is still running, that tick is skipped instead of queued.
const job = ;
const asyncJob = ;
CronJob:
job.cron: normalized cron expression string.job.stop(): stop the job and returnjob.job.ref(): returnjob. Present for Bun API compatibility.job.unref(): returnjob. Present for Bun API compatibility.
Unsupported API
OS-level cron registration is intentionally unsupported and throws a
TypeError when requested.