Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access authority #1343

Open
ytx0574 opened this issue May 22, 2024 · 3 comments
Open

Access authority #1343

ytx0574 opened this issue May 22, 2024 · 3 comments

Comments

@ytx0574
Copy link

ytx0574 commented May 22, 2024

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

@RomanPodymov
Copy link
Collaborator

Hello @ytx0574
Can you provide more details, please?

@ytx0574
Copy link
Author

ytx0574 commented Jun 6, 2024

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants