From: Ivan Shevanski Date: 2009-09-11T04:48:56+09:00 Subject: Re: Asynchronous http POST? Joel VanderWerf wrote: > Ezra Zygmuntowicz wrote: >>> two posts in the background constantly. From what I've read, ruby >> >> Ivan- >> >> This is a perfect job for eventmachine and em-http-request. You can >> run as many async http requests as you want without blocking and handle >> the results with callback blocks. > > In small scale cases (such as a simple client) is there any reason not > to use threads? EM just seems like overkill for a fairly simple client. Apparently, since control is not returned to the interpreter, when one thread waits the other(s) will not continue. At least that's my understanding. -- Posted via http://www.ruby-forum.com/.