-
Notifications
You must be signed in to change notification settings - Fork 653
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
Deprecate NIOAtomics
in favor of Atomics
#2204
Conversation
Can one of the admins verify this patch? |
11 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swift-nio-bot add to allowlist |
I’ll ping on apple/swift-atomics#45 for this. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @stevapple! Looks good from my side but we definitely need to wait for Cory's review.
@swift-nio-bot test this please |
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics In addition, the `@preconcrrency` imports of `NIOCore` are not required and do not produce warnings/errors even with the currently latest released version of swift-nio (2.40.0), changes from `main` are not required.
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics In addition, the `@preconcrrency` imports of `NIOCore` are not required and do not produce warnings/errors even with the currently latest released version of swift-nio (2.40.0), changes from `main` are not required.
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics In addition, the `@preconcrrency` imports of `NIOCore` are not required and do not produce warnings/errors even with the currently latest released version of swift-nio (2.40.0), changes from `main` are not required.
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics
Motivation: NIO deprecated its atomics in apple/swift-nio#2204. Modifications: - Use swift-atomics in the `QPSBenchmark` sub-package - Use a lock in the one test which used `NIOAtomic` Result: Not using deprecated code.
Motivation: NIO deprecated its atomics in apple/swift-nio#2204. Modifications: - Use swift-atomics in the `QPSBenchmark` sub-package - Use a lock in the one test which used `NIOAtomic` Result: Not using deprecated code.
Motivation: NIO deprecated its atomics in apple/swift-nio#2204. Modifications: - Use swift-atomics in the `QPSBenchmark` sub-package - Use a lock in the one test which used `NIOAtomic` Result: Not using deprecated code.
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics
`NIOAtomics` was deprecated in apple/swift-nio#2204 in favor of `swift-atomics` https://github.com/apple/swift-atomics In addition, the `@preconcrrency` imports of `NIOCore` are not required and do not produce warnings/errors even with the currently latest released version of swift-nio (2.40.0), changes from `main` are not required.
Motivation: NIO deprecated its atomics in apple/swift-nio#2204. Modifications: - Use swift-atomics in the `QPSBenchmark` sub-package - Use a lock in the one test which used `NIOAtomic` Result: Not using deprecated code.
Motivation: NIO deprecated its atomics in apple/swift-nio#2204. Modifications: - Use swift-atomics in the `QPSBenchmark` sub-package - Use a lock in the one test which used `NIOAtomic` Result: Not using deprecated code.
Deprecate
NIOAtomics
in favor ofAtomics
, and replace all usages ofNIOAtomic
.Motivation:
Since we have an official
Atomics
library, we can move from our ownAtomics
implementation to it.Resolves #1948.
Modifications:
NIOAtomic
andUnsafeEmbeddedAtomic
wrapper types are now deprecated;NIOAtomic
toManagedAtomic
.Result:
We no longer need to maintain our own atomic types.
NIO will gain a dependency on
swift-atomics
package.