mirror of
https://github.com/denoland/deno
synced 2024-08-25 02:57:22 +00:00
![]() This PR changes the `Deno.cron` API: * Marks the existing function as deprecated * Introduces 2 new overloads, where the handler arg is always last: ```ts Deno.cron( name: string, schedule: string, handler: () => Promise<void> | void, ) Deno.cron( name: string, schedule: string, options?: { backoffSchedule?: number[]; signal?: AbortSignal }, handler: () => Promise<void> | void, ) ``` This PR also fixes a bug, when other crons continue execution after one of the crons was closed using `signal`. |
||
---|---|---|
.. | ||
01_cron.ts | ||
Cargo.toml | ||
interface.rs | ||
lib.rs | ||
local.rs | ||
README.md | ||
time.rs |
deno_cron
This crate implements scheduled tasks (crons) API for Deno.