Skip to content

Commit

Permalink
Foundation @preconcurrency only on Linux (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 13, 2024
1 parent e80b318 commit da43476
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Expand Up @@ -12,7 +12,11 @@
//
//===----------------------------------------------------------------------===//

#if os(Linux)
@preconcurrency import Foundation
#else
import Foundation
#endif

/// The wrapper struct for decoding URL encoded form data to Codable classes
public struct URLEncodedFormDecoder: Sendable {
Expand Down
Expand Up @@ -12,7 +12,11 @@
//
//===----------------------------------------------------------------------===//

#if os(Linux)
@preconcurrency import Foundation
#else
import Foundation
#endif

/// The wrapper struct for encoding Codable classes to URL encoded form data
public struct URLEncodedFormEncoder: Sendable {
Expand Down
4 changes: 4 additions & 0 deletions Sources/Hummingbird/Files/FileMiddleware.swift
Expand Up @@ -12,7 +12,11 @@
//
//===----------------------------------------------------------------------===//

#if os(Linux)
@preconcurrency import Foundation
#else
import Foundation
#endif
import HTTPTypes
import Logging
import NIOCore
Expand Down

0 comments on commit da43476

Please sign in to comment.