Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builtin cron support #7004

Open
codehz opened this issue Nov 9, 2023 · 1 comment
Open

Builtin cron support #7004

codehz opened this issue Nov 9, 2023 · 1 comment
Labels
bun.js Something to do with a Bun-specific API enhancement New feature or request

Comments

@codehz
Copy link
Contributor

codehz commented Nov 9, 2023

What is the problem this feature would solve?

reason: naive solution has some drawback:

  1. setInterval: not play well with async (also have below problem)
  2. infinite loop with Bun.sleep: will keep running in --hot mode

What is the feature you are proposing to solve the problem?

add something like https://deno.land/api@v1.38.0?s=Deno.cron&unstable=
which can be used with --hot mode and async

What alternatives have you considered?

No response

@codehz codehz added the enhancement New feature or request label Nov 9, 2023
@Electroid Electroid added the bun.js Something to do with a Bun-specific API label Nov 9, 2023
@is-jonreeves
Copy link

is-jonreeves commented Apr 18, 2024

For whatever reason, I thought I'd read somewhere that Bun had this, but I guess I must have confused it with either Deno or Elysia.

Would be useful for sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun.js Something to do with a Bun-specific API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants