1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/ext
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
..
broadcast_channel 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
cache 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
console Revert "fix(ext/console): fix inspecting iterators error. (#20720)" (#21191) 2023-11-17 11:29:51 +09:00
cron feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-17 11:30:43 +09:00
crypto 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
fetch feat(ext/web): add AbortSignal.any() (#21087) 2023-11-17 11:29:02 +09:00
ffi 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
fs 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
http feat(ext/net): use rustls_tokio_stream (#21205) 2023-11-17 11:30:38 +09:00
io 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
kv 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
napi 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
net feat(ext/net): use rustls_tokio_stream (#21205) 2023-11-17 11:30:38 +09:00
node fix(ext/node): add APIs perf_hook.performance (#21192) 2023-11-17 11:30:03 +09:00
tls 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
url 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
web feat(ext/web): add AbortSignal.any() (#21087) 2023-11-17 11:29:02 +09:00
webidl 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
websocket 1.38.1 (#21143) 2023-11-10 17:16:23 +05:30
webstorage fix(ext/web): webstorage has trap for symbol (#21090) 2023-11-17 11:30:00 +09:00