-
Notifications
You must be signed in to change notification settings - Fork 4
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
Document how to handle cancellation #314
Comments
WRE suggests https://cran.rstudio.com/doc/manuals/r-devel/R-exts.html#Allowing-interrupts |
ctrlc crate looks handy. https://rust-cli.github.io/book/in-depth/signals.html |
This is very useful for me. The current polars package implements the following, which I believe is not ideal. |
Oh, the current implementation looks very hacky... I thought we can learn from Python Polars' implementation, but it seems they have their own difficulties... pola-rs/polars#2687 |
I think this is the naive translation to Rust, but this doesn't work except for the first Ctrl+C... https://github.com/yutannihilation/cancel.test.savvy/blob/main/src/rust/src/lib.rs |
Some more findings:
|
Other than |
cf.
The text was updated successfully, but these errors were encountered: