Swift: How To Practise A Background Thread

Background Threads

let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
dispatch_async(dispatch_get_global_queue(priority, 0)) {
    // create about task

    dispatch_async(dispatch_get_main_queue()) {
        // update about UI

    }
}

Related Post:

Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
[-(
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
(c)
cheer