digital-fabric / polyphony

Fine-grained concurrency for Ruby
https://www.rubydoc.info/gems/polyphony
MIT License
661 stars 17 forks source link

I/O in signal handler causes exception (thread not set for fiber) #45

Closed noteflakes closed 4 years ago

noteflakes commented 4 years ago
require 'polyphony'

trap('INT') { puts 'hi!' } # will fail with 'No thread set for fiber'

Process.kill('INT', Process.pid)