# File lib/reactor/reactor.rb, line 177 def selectable(handler = nil) impl = chandler(handler, self.method(:on_error)) result = Selectable.wrap(Cproton.pn_reactor_selectable(@impl)) if !impl.nil? record = Cproton.pn_selectable_attachments(result.impl) Cproton.pn_record_set_handler(record, impl) Cproton.pn_decref(impl) end return result end