mxcl / PromiseKit

Promises for Swift & ObjC.
MIT License
14.22k stars 1.45k forks source link

Access authority #1343

Open ytx0574 opened 3 months ago

ytx0574 commented 3 months ago

OC exposes the acquisition of isPending isFulfilled isRejected value, why not Swift?

RomanPodymov commented 3 months ago

Hello @ytx0574 Can you provide more details, please?

ytx0574 commented 3 months ago
image

isPending isFulfilled isRejected here is not the public var. When I use these attributes, is often needed to condition my code when I use these properties

RomanPodymov commented 3 months ago

Hello @ytx0574 Thank you for the details. Are you using AnyPromise? If so, please consider migration to Promise, AnyPromise should be used in Objective-C only. But anyway, AnyPromise(__value: 100).isPending works for me in Swift.