I love the async/await proposal, but some of the examples are too simplified. In this message I'd like to explore what a more thorough example could look like.
Let's start with this example from the proposal:
@IBAction func buttonDidClick(sender:AnyObject) {
beginAsync {
let image = await processImage()
imageView.image = image
}
}