mas/Sources/MasKit/MasKit.swift
2021-05-08 21:10:03 -07:00

27 lines
757 B
Swift

//
// MasKit.swift
// MasKit
//
// Created by Chris Araman on 4/22/21.
// Copyright © 2021 mas-cli. All rights reserved.
//
import PromiseKit
public enum MasKit {
public static func initialize() {
PromiseKit.conf.Q.map = .global()
PromiseKit.conf.Q.return = .global()
PromiseKit.conf.logHandler = { event in
switch event {
case .waitOnMainThread:
// Ignored. This is a console app that waits on the main thread for
// promises to be processed on the global DispatchQueue.
break
default:
// Other events indicate a programming error.
fatalError("PromiseKit event: \(event)")
}
}
}
}