Why do you need a parallelism network library descriptor? This is exactly what themes are for.
require "open-uri" fetcher = lambda do |uri| puts "Started fetching #{uri}" puts open(uri).read puts "Stopped fetching #{uri}" end thread1 = Thread.new("http://localhost:9292", &fetcher) thread2 = Thread.new("http://localhost:9293", &fetcher) thread1.join thread2.join
Also, I don't understand what you mean by "works better." Core libraries are usually good enough to be at the core. Have problems with Net :: HTTP?
source share