2016-06-24 22:08:34 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
2016-06-19 16:17:43 +03:00
|
|
|
|
2016-08-03 22:43:05 +03:00
|
|
|
import Cocoa
|
2016-06-19 16:17:43 +03:00
|
|
|
|
2016-09-25 18:50:33 +03:00
|
|
|
open class DispatchUtils {
|
2016-06-19 16:17:43 +03:00
|
|
|
|
2016-09-25 18:50:33 +03:00
|
|
|
fileprivate static let qDispatchMainQueue = DispatchQueue.main
|
2016-06-19 16:17:43 +03:00
|
|
|
|
2016-09-25 18:50:33 +03:00
|
|
|
open static func gui(_ call: @escaping () -> Void) {
|
|
|
|
DispatchUtils.qDispatchMainQueue.async(execute: call)
|
2016-06-19 16:17:43 +03:00
|
|
|
}
|
2016-06-24 22:08:34 +03:00
|
|
|
}
|