urbancoding/jenx — pull request #44 by msabramo (2012-02-22 06:44:16+00:00)
Title: Fix GH-37: Jenx is unresponsive while retrieving status

Instead of blocking on the completion of HTTP requests using
JenxConnectionManager::value (which does a GCD group wait and thus
blocks the main thread and makes the UI unresponsive), allow GCD tasks
to run asynchronously and call the passed-in block on the main thread
via Dispatch::Queue.main.async (because UI stuff must be done on the
main thread to prevent crashes). This eliminates the spinning beach ball
when Jenx is doing HTTP requests to retrieve the status from Jenkins.

Fixes GH-37.