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