Use Grand Central Dispatch to modify the following method definition so that reallyLongCalculation() will be performed in
Fantastic news! We've Found the answer you've been seeking!
Question:
Use Grand Central Dispatch to modify the following method definition so that reallyLongCalculation() will be performed in a background thread:
func buttonPressed() {
var result: Int
result = reallyLongCalculation()
resultTextField.text = "(result)"
}
Related Book For
Posted Date: