returnFiber.yield end ventMachine.rundo Fiber.new{ res =query('select sleep(1)') puts "Results: #{res.fetch_row.first}" }.resume end
?"""( " %
'(
| |
" "7 " $ "% 6
O
+
+ ,-
. . . . . . /0
$;" "$* " * $$"
| |
ventMachine.synchronydo multi =ventMachine::Synchrony::Multi.new multi.add:a, ventMachine::HttpRequest.new(url1).aget multi.add:b, ventMachine::HttpRequest.new(url2).apost res =multi.perform p³No callbacks, and parallel HTTP requests!" p res ventMachine.stop end
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.