1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00
vimr/SwiftNeoVim/DispatchUtils.swift

16 lines
300 B
Swift
Raw Normal View History

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