Skip to content

Make AsyncDNSResolver Sendable - #82

Merged
FranzBusch merged 3 commits into
apple:mainfrom
hamzahrmalik:sendable
Apr 8, 2026
Merged

FranzBusch merged 3 commits into
apple:mainfrom
hamzahrmalik:sendable

Conversation

@hamzahrmalik

@hamzahrmalik hamzahrmalik commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

The underlying dns resolvers are already sendable, so let's make AsyncDNSResolver sendable too

@hamzahrmalik hamzahrmalik changed the title Make dns resolver Sendable Make AsyncDNSResolver Sendable Apr 7, 2026
@hamzahrmalik
hamzahrmalik marked this pull request as ready for review April 7, 2026 15:44
/// API for running DNS queries.
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public protocol DNSResolver {
public protocol DNSResolver: Sendable {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a @preconcurrency added

@FranzBusch FranzBusch added the 🆕 semver/minor Adds new public API. label Apr 8, 2026
@FranzBusch
FranzBusch enabled auto-merge (squash) April 8, 2026 10:07
@FranzBusch
FranzBusch merged commit 36eedf1 into apple:main Apr 8, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants