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-10-07 19:23:54 +03:00
|
|
|
public 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-10-07 19:23:54 +03:00
|
|
|
public static func gui(_ call: @escaping () -> Void) {
|
2016-09-25 18:50:33 +03:00
|
|
|
DispatchUtils.qDispatchMainQueue.async(execute: call)
|
2016-06-19 16:17:43 +03:00
|
|
|
}
|
2016-06-24 22:08:34 +03:00
|
|
|
}
|