PullToRefresh icon indicating copy to clipboard operation
PullToRefresh copied to clipboard

MultiThreading

Open macintosh264 opened this issue 13 years ago • 3 comments

Added multithreading to the table so you don't hang up the main thread with network requests.

macintosh264 avatar Dec 11 '11 03:12 macintosh264

performSelector:withObject:afterDelay: is non-blocking and will defer to the runloop. I suspect (but haven't bothered benchmarking) that spawning a new thread, and then dispatching back to the main runloop is actually more expensive than letting the runloop handle things outright.

zadr avatar Jan 29 '12 23:01 zadr

It is useful when executing network requests, and thus is better than letting it run on the main runloop.

macintosh264 avatar Mar 14 '12 14:03 macintosh264

Actually, the refresh method should be replaced by a delegate that performs whatever request is needed to update this table view. This controller is generic and should be oblivious about implementations details

monzonj avatar May 11 '12 06:05 monzonj