From: Julien Schmurfy Date: 2009-08-27T01:16:00+09:00 Subject: Re: eventmachine and threads George Malamidis wrote: > Have you considered EventMachine::Deferrable? > > http://eventmachine.rubyforge.org/EventMachine/Deferrable.html > > Using threads with EventMachine kind of beats the purpose of > lightweight concurrency. > > George The object returned by sendRequest ("req") is a Deferrable, the reason we need to keep synchronous call is that these calls are made in functions which look like: def do_something() ret = sendRequestOne() ret2 = sendRequestTwo(ret) ... end We could rewrite them to by asynchronous but making the current implementation works is way faster (and take less time too). -- Posted via http://www.ruby-forum.com/.