Skip to content

Add sending keyword to closures in convenience functions#3

Merged
mattmassicotte merged 1 commit intoChimeHQ:mainfrom
ryanslikesocool:main
Feb 7, 2025
Merged

Add sending keyword to closures in convenience functions#3
mattmassicotte merged 1 commit intoChimeHQ:mainfrom
ryanslikesocool:main

Conversation

@ryanslikesocool
Copy link
Contributor

This functionality was already possible when directly using convenience functions that provide a continuation (NSXPCConnection.withContinuation(isolation:function:_:), for example), but now the other convenience functions support it too!
I have no easy way of testing with Swift < 6 so none of that is changed.

@mattmassicotte
Copy link
Contributor

This didn't pass CI because I attempted to minimize the amount of conditional compilation needed in QueuedRemoteXPCService, and did so in a way that wasn't particularly robust.

I found it incredibly hard to pull this off for the other types, and I'm inclined to just give up on it. It's a ton of work, introduces a lot of noise, and the value of supporting a < 6.0 compiler goes down every day.

Long-winded way of saying, let's merge this, and I'm just going to get rid of the 5 compatibility. There are older releases available if someone needs it.

@mattmassicotte mattmassicotte merged commit f32a686 into ChimeHQ:main Feb 7, 2025
0 of 2 checks passed
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.

2 participants