PMKConfiguration
public struct PMKConfiguration
PromiseKit’s configurable parameters.
Do not change these after any Promise machinery executes as the configuration object is not thread-safe.
We would like it to be, but sadly Swift
does not expose dispatch_once
et al. which is what we used to use in order to make the configuration immutable once first used.
-
The default queues that promises handlers dispatch to
Declaration
Swift
public var Q: (map: DispatchQueue?, return: DispatchQueue?)
-
The default catch-policy for all
catch
andresolve
Declaration
Swift
public var catchPolicy: CatchPolicy
-
The closure used to log PromiseKit events. Not thread safe; change before processing any promises.
Note
The default handler callsprint()
Declaration
Swift
public var logHandler: (LogEvent) -> Void