В проекте Linux swift вам нужно использовать:
import PromiseKit
import Dispatch
func runAsyncAction() {
firstly {
executeSomePromiseFunc()
}.done(on:DispatchQueue.global()) {
getResult($0)
}.ensure(on:DispatchQueue.global()) {
}.catch(on:DispatchQueue.global()) {
}
}
PS. Работает на Ubuntu 16.04, Swift 4.2