d-unsed / ruru

Native Ruby extensions written in Rust
MIT License
832 stars 40 forks source link

Feature Request: Thread method `handle_interrupt` #86

Closed danielpclark closed 6 years ago

danielpclark commented 6 years ago

According to the documentation in Ruby's vm.c file we can handle exceptions per thread with this method.

With the addition of the class method ::handle_interrupt, you can now handle exceptions asynchronously with threads.

I found this while looking for an alternative for rb_protect since I haven't gotten #85 working.

danielpclark commented 6 years ago

I'm not sure we need this…