vapor / websocket-kit

WebSocket client library built on SwiftNIO
https://docs.vapor.codes/4.0/advanced/websockets/
MIT License
272 stars 79 forks source link

NIOAtomic is deprecated #121

Closed JetForMe closed 2 years ago

JetForMe commented 2 years ago

Describe the bug

NIOAtomic is now deprecated in favor of ManagedAtomic.

…/.build/checkouts/websocket-kit/Sources/WebSocketKit/WebSocketClient.swift:40:22: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
    let isShutdown = NIOAtomic.makeAtomic(value: false)

To Reproduce

With

 $ swift --version
Swift version 5.6.2 (swift-5.6.2-RELEASE)
Target: aarch64-unknown-linux-gnu

Compile this library.

Expected behavior

No warnings.

Environment

 $ swift --version
Swift version 5.6.2 (swift-5.6.2-RELEASE)
Target: aarch64-unknown-linux-gnu

websocket-kit 2.6.0

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

Additional context

n/a