Module: FFI::Libfuse::Adapter::Interrupt
- Defined in:
- lib/ffi/libfuse/adapter/interrupt.rb
Overview
Wrapper module to handle interrupts
Include this module if you want all requests to check for interruption before processing
To handle interrupts only for specific callbacks just call FFI::Libfuse.raise_interrupt or FFI::Libfuse.fuse_interrupted? during callback processing rather than including this adapter
Class Method Summary collapse
Class Method Details
.interrupt_callback(*args) {|args| ... } ⇒ Object
29 30 31 32 33 |
# File 'lib/ffi/libfuse/adapter/interrupt.rb', line 29 def interrupt_callback(*args) Libfuse.raise_interrupt yield(*args) end |