From: Colin B. <ti...@la...> - 2006-08-21 05:35:26
|
On Aug 20, 2006, at 7:16 PM, Mark Doliner wrote: > Ethan didn't like this (I think because it uses threads?), but his > reasons > didn't really convince me. How do other people feel? It's pretty > easy to > revert my change and go back to having lots of crazy and confusing > code, if > people want. What exactly is his problem with using a thread? Threads are great; they only start to get hairy when you're passing data back and forth from one threadspace to another. But this type of task -- performing a blocking call without blocking the UI -- is the canonical, text book case for threads, and generally results in simple, easy to understand code -- assuming the library you're using is sane, of course ;) -Colin |