deno/ext/cron
Igor Zinkovsky b572abfcb3
feat(ext/cron) modify Deno.cron API to make handler arg last (#21225)
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`.
2023-11-16 14:19:00 -08:00
..
01_cron.ts feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-16 14:19:00 -08:00
Cargo.toml chore: forward v1.38.1 release commit to main (#21144) 2023-11-10 18:51:34 +05:30
interface.rs feat(cron) implement Deno.cron() (#21019) 2023-11-01 11:57:55 -07:00
lib.rs feat(cron) implement Deno.cron() (#21019) 2023-11-01 11:57:55 -07:00
local.rs feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-16 14:19:00 -08:00
README.md 1.38.0 (#21051) 2023-11-02 01:01:47 +00:00
time.rs feat(cron) implement Deno.cron() (#21019) 2023-11-01 11:57:55 -07:00

deno_cron

This crate implements scheduled tasks (crons) API for Deno.