0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-10 06:07:03 -04:00
deno/ext/cron
Igor Zinkovsky 66c64ac511
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-17 11:30:43 +09:00
..
01_cron.ts feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-17 11:30:43 +09:00
Cargo.toml 1.38.1 (#21143) 2023-11-10 17:16:23 +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-17 11:30:43 +09: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.