Skip to content

Builtin cron support #7004

@codehz

Description

@codehz

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

Metadata

Metadata

Assignees

Labels

bun.jsSomething to do with a Bun-specific APIenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions