Swift Closure Issue
<p>Im just hacking away in Swift but for the life of me I can't get this to <code>return</code> anything but an empty <code>[Item]</code>.  The <code>[Item]</code> is correct and the way I want it if I execute the <code>print</code> function inside the closure.   </p>

<pre><code>func getCurrentDetails(ref: FIRDatabaseReference) -&gt; [Item] {
    ref.observeEventType(.Value, withBlock: { snapshot in
        var currentDetails = [Item]()
        for item in snapshot.children {
            var currentItem = Item(snapshot: item as! FIRDataSnapshot)
            if currentItem.Name != "" { 
                currentItem.Image = "http://www.deletedthisurl/" + currentItem.Number + "_500X500.gif"
                currentDetails.append(currentItem)   
            }   
        }
        self.currentArray = currentDetails
        // print(self.currentArray)  // Prints here
    })
    print(self.currentArray)  //Prints an empty Item array here
    return currentArray
}
</code></pre>