Background Threads
let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
dispatch_async(dispatch_get_global_queue(priority, 0)) {
// do some task
dispatch_async(dispatch_get_main_queue()) {
// update some UI
}
}
Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.
Explore NERV on GitHub →Our website uses cookies to improve your experience. Learn more
Accept !
Post a Comment