--000e0cd68f2ab90b9c0486e970cb
Content-Type: text/plain; charset=ISO-8859-1

On Tue, May 18, 2010 at 7:56 PM, Daniel DeLorme <dan-ml / dan42.com> wrote:

> What I can't figure out with EventMachine is how to have the "main
> thread" generate the layout while the subrequests are executing.
>

The problem here is inversion of control.  EventMachine inverts control on
you, and it sucks.  You can't just do subreq(...) and expect it to return a
value.  In the best case, you have subreq call a block when it completes.
 The familiar pattern of "call function, get value" no longer applies.

-- 
Tony Arcieri
Medioh! A Kudelski Brand

--000e0cd68f2ab90b9c0486e970cb--