Keep the process alive while this job is scheduled (default).
method
CronJob.ref
Referenced types
interface CronJob
A handle to an in-process cron job returned by Bun.cron when called with a callback.
const job = Bun.cron("0 * * * *", async () => {
await cleanupTempFiles();
});
// Later:
job.stop();