Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Aug 8, 2024
1 parent 8bd47e5 commit 8688f52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Sources/NIOConcurrencyHelpers/NIOAtomic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ import CNIOAtomics
@preconcurrency
public protocol NIOAtomicPrimitive {
associatedtype AtomicWrapper
static var nio_atomic_create_with_existing_storage: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self) -> Void { get }
static var nio_atomic_compare_and_exchange: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self, Self) -> Bool { get }
static var nio_atomic_create_with_existing_storage: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self) -> Void {
get
}
static var nio_atomic_compare_and_exchange: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self, Self) -> Bool {
get
}
static var nio_atomic_add: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self) -> Self { get }
static var nio_atomic_sub: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self) -> Self { get }
static var nio_atomic_exchange: @Sendable (UnsafeMutablePointer<AtomicWrapper>, Self) -> Self { get }
Expand Down
4 changes: 2 additions & 2 deletions Sources/NIOConcurrencyHelpers/atomics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public final class Atomic<T: AtomicPrimitive> {
}

@available(*, deprecated)
extension Atomic: @unchecked Sendable where T: Sendable { }
extension Atomic: @unchecked Sendable where T: Sendable {}

/// The protocol that all types that can be made atomic must conform to.
///
Expand Down Expand Up @@ -619,4 +619,4 @@ public final class AtomicBox<T: AnyObject> {
}

@available(*, deprecated)
extension AtomicBox: @unchecked Sendable where T: Sendable { }
extension AtomicBox: @unchecked Sendable where T: Sendable {}

0 comments on commit 8688f52

Please sign in to comment.