boxlang-express 0.2.8

Released .

  • Added app.schedule(intervalMs, callback, options) / Scheduler.bx — fixed-interval recurring jobs, the setInterval equivalent (deliberately no cron parsing — a real, separable feature this pass doesn't build). One shared ScheduledExecutorService per app drives ticks; each tick's callback runs on its own virtual thread, the same request/job-body split app.listen() already uses, so a slow job never delays another job's tick. No-overlap is the default (a tick is skipped, not queued, if the previous run hasn't finished — claimed atomically via AtomicBoolean so the tick thread and the still- running virtual thread can't both think they own the same tick), { allowOverlap: true } opts out. A thrown error inside a job is caught and logged ([Scheduler] job 'name' threw: ...), never left to kill future ticks — same posture as HttpBridge.bx's dispatch guard and Stomp.bx's server-side listener guard. app.getScheduledJobs() is a live introspection getter, same pattern as Stomp.bx's getConnections()/getSubscriptions(). app.close() cancels every job and shuts the scheduler down via the same teardown block that already stops the reload watcher and the HTTP server. In-memory only (no persistence across restarts), no missed-run catch-up, and no clustering — every process instance runs every job independently, the same boundary Stomp.bx's docblock draws for itself around multi-node clustering. See Scheduler.bx and tests/specs/SchedulerSpec.bx (9 specs).