Run code in main thread:

let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT

dispatch_async(dispatch_get_global_queue(priority, 0)) {

    // do some task

    dispatch_async(dispatch_get_main_queue()) {

        self.dataDelegate.handleData(self.httpData, signature: self.signature)

    }

}