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

Make DJFuture results nonnull in objective C #170

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

jb-gcx
Copy link
Contributor

@jb-gcx jb-gcx commented May 21, 2024

Closes #169

Of the test failures I mentioned in the issue, all now cause a compiler warning except for testFutureRoundtripWithNSNull. Unfortunately I can't find a way to prevent the parameterless setValue from being called for non-void promises.

@li-feng-sc li-feng-sc merged commit 9a74ee9 into Snapchat:main Jun 26, 2024
1 check passed
@li-feng-sc
Copy link
Contributor

@jb-gcx I had to revert this change in the version snap uses because nonnull get/set prevents future<optional<>>

@jb-gcx
Copy link
Contributor Author

jb-gcx commented Aug 30, 2024

That's too bad, I thought I tested that case. I guess my test was not representative, sorry about that.

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

Successfully merging this pull request may close these issues.

Value of Objective C Future/Promise is unexpectedly nillable
2 participants