Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (10 sloc) 262 Bytes
#!/usr/bin/env ruby
require 'bundler/setup'
require 'eventless'
fibers = []
%w(www.google.com ipv6.google.com www.yahoo.com www.bing.com).each do |host|
fibers << Eventless.spawn do
p Addrinfo.getaddrinfo(host, 80)
end
end
fibers.each { |f| f.join }
Jump to Line
Something went wrong with that request. Please try again.