# File lib/facet/expect.rb, line 151 def run(timeout = nil) return if @expects_left == 0 catch :expect_loop_done do @reactor.run_event_loop(timeout) for key, chain in @expect_chain do next if chain.length == 0 raise Timeout.new(key, chain.first) end # TODO: What does it mean if we got here? end end