Skip to content

Conversation

@glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Nov 26, 2024

Motivation:

In #2598, NIOFileHandle was annotated with noasync in a few places. This is, unfortunately, a breaking change.

Modifications:

  • Remove the noasync annotations

Result:

Adopters aren't broken

Motivation:

In apple#2598, `NIOFileHandle` was annotated with `noasync` in a few places.
This is, unfortunately, a breaking change.

Modifications:

- Remove the `noasync` annotations

Result:

Adopters aren't broken
@glbrntt glbrntt requested a review from Lukasa November 26, 2024 10:56
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 26, 2024
/// - path: The path of the file to open. The ownership of the file descriptor is transferred to this `NIOFileHandle` and so it will be closed once `close` is called.
/// - mode: Access mode. Default mode is `.read`.
/// - flags: Additional POSIX flags.
@available(*, noasync, message: "This method may block the calling thread")
Copy link
Member

Choose a reason for hiding this comment

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

@glbrntt We can keep it on the new methods though, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're absolutely right.

@glbrntt glbrntt requested a review from weissi November 27, 2024 11:05
@Lukasa Lukasa enabled auto-merge (squash) November 27, 2024 11:17
@Lukasa Lukasa merged commit ca55b0e into apple:main Nov 27, 2024
42 of 43 checks passed
@glbrntt glbrntt deleted the nonoasync branch November 27, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants