-
Notifications
You must be signed in to change notification settings - Fork 34
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
New sched module #283
base: main
Are you sure you want to change the base?
New sched module #283
Conversation
The sched module exposes a simple interface to schedule tasks, powered by [chrono](https://github.com/codnect/chrono).
This is ready for some 👀 |
47c19d6
to
4f588e5
Compare
@rubiojr - one aspect of this I'm thinking about is whether this should have some cleanup behavior built in. For example with the That means that whatever context was passed to run the Risor VM can be used to cancel and automatically close any connections created during the VM run. Similarly, I wonder if all schedules created with this module should automatically be cleaned up when the VM context is cancelled. Thoughts? (This is mainly relevant when using Risor as an embedded library) |
@myzie let me have a closer look, I didn't think of that. |
Fixes #279
The sched module exposes a simple interface to schedule tasks, powered by chrono.