PromiseKit icon indicating copy to clipboard operation
PromiseKit copied to clipboard

Access authority

Open ytx0574 opened this issue 1 year ago • 5 comments

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

ytx0574 avatar May 22 '24 03:05 ytx0574

Hello @ytx0574 Can you provide more details, please?

RomanPodymov avatar Jun 01 '24 17:06 RomanPodymov

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

ytx0574 avatar Jun 06 '24 07:06 ytx0574

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.

RomanPodymov avatar Jun 07 '24 08:06 RomanPodymov

Can I have more context about this topic

Dajoe007 avatar Mar 03 '25 23:03 Dajoe007