[ create a new paste ] login | about

Link: http://codepad.org/0j8VPtZg    [ raw code | fork ]

cam - Plain Text, pasted on Feb 18:
1
2
3
4
5
6
7
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
    // do your task

    dispatch_async(dispatch_get_main_queue()) {
        // update some UI
    }
}


Create a new paste based on this one


Comments: