Sha256: 349c08cbfea88231f07510c3ca1f00f60182319c553ea4558d2bf03e45232fc5
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require 'helper' require 'fiber' describe EventMachine::HttpRequest do context "with fibers" do it "should be transparent to connexion errors" do EventMachine.run do Fiber.new do f = Fiber.current http = EventMachine::HttpRequest.new('http://non-existing.domain/').get http.callback {failed(http)} http.errback {f.resume} Fiber.yield EventMachine.stop end.resume end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
em-http-request-1.0.1 | spec/client_fiber_spec.rb |