6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/em-synchrony/em-remcached.rb', line 6
def connect(servers)
Memcached.servers = servers
f = Fiber.current
@t = EM::PeriodicTimer.new(0.01) do
if Memcached.usable?
@t.cancel
f.resume(self)
end
end
Fiber.yield
end
|