__AnyPromise
@objc(__AnyPromise)
public class __AnyPromise : NSObject
__AnyPromise is an implementation detail.
Because of how ObjC/Swift compatibility work we have to compose our AnyPromise with this internal object, however this is still part of the public interface. Sadly. Please don’t use it.
-
Undocumented
Declaration
Swift
@objc public init(resolver body: (@escaping (Any?) -> Void) -> Void) -
Undocumented
Declaration
Swift
@objc public func __thenOn(_ q: DispatchQueue, execute: @escaping (Any?) -> Any?) -> AnyPromise -
Undocumented
Declaration
Swift
@objc public func __catchOn(_ q: DispatchQueue, execute: @escaping (Any?) -> Any?) -> AnyPromise -
Undocumented
Declaration
Swift
@objc public func __ensureOn(_ q: DispatchQueue, execute: @escaping () -> Void) -> AnyPromise -
Undocumented
Declaration
Swift
@objc public func __wait() -> Any? -
Internal, do not use! Some behaviors undefined.
Declaration
Swift
@objc public func __pipe(_ to: @escaping (Any?) -> Void) -
Undocumented
Declaration
Swift
@objc public var __value: Any? { get } -
Undocumented
Declaration
Swift
@objc public var __pending: Bool { get }
View on GitHub
__AnyPromise Class Reference