1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 22:09:02 -05:00
denoland-deno/cli/tests
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
..
integration feat(ext/net): use rustls_tokio_stream (#21205) 2023-11-17 11:30:38 +09:00
node_compat fix(ext/node): Re-enable alloc max size test (#21059) 2023-11-17 11:28:33 +09:00
testdata feat(ext/net): use rustls_tokio_stream (#21205) 2023-11-17 11:30:38 +09:00
unit feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-17 11:30:43 +09:00
unit_node fix(ext/node): add APIs perf_hook.performance (#21192) 2023-11-17 11:30:03 +09:00
integration_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00