mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
b572abfcb3
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.