What is the meaning of the syntax used in the processingQueue definition in the Concurrency chapter?
let processingQueue : OperationQueue = {
...
return result
}()
According to the closure literature, it should be ok if the above declaration omitted the ending ‘()’. But can anyone clarify what the role of the parentheses is?
Declaring processingQueue without parentheses leads to this XCode error:
Cannot convert value of type '() -> _' to specified type 'OperationQueue'
Thanks in advance.