123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Channel::Selector::ErrorClause

Relationships & Source Files
Inherits: Object
Defined in: lib/concurrent-ruby-edge/concurrent/channel/selector/error_clause.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(block) ⇒ ErrorClause

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/channel/selector/error_clause.rb', line 7

def initialize(block)
  @block = block
end

Instance Method Details

#execute(error)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/channel/selector/error_clause.rb', line 11

def execute(error)
  @block.call(error)
rescue
  # suppress and move on
ensure
  return nil
end