Some enum and extension magic easily lets you write things like:
Queue.UserInitiated.execute { let url = NSURL(string: "http://image.jpg")! let data = NSData(contentsOfURL: url)! let image = UIImage(data: data) Queue.Main.execute { imageView.image = image } }
Some enum and extension magic easily lets you write things like: