Create a gist now

Instantly share code, notes, and snippets.

@seki /gist:5133692
Last active Dec 14, 2015

def write_services
@sockets.map do |s|
Thread.new(s) do |socket|
loop do
msg = socket.recv(1024)
do_write(msg)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment