Skip to content

Remove @_implementationOnly usage #294

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

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

struct BoundedBufferStateMachine<Base: AsyncSequence> {
typealias Element = Base.Element
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

struct UnboundedBufferStateMachine<Base: AsyncSequence> {
typealias Element = Base.Element
Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncAlgorithms/Channels/ChannelStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//
@_implementationOnly import OrderedCollections
import OrderedCollections

// NOTE: this is only marked as unchecked since the swift-collections tag is before auditing for Sendable
extension OrderedSet: @unchecked Sendable where Element: Sendable { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

/// State machine for combine latest
struct CombineLatestStateMachine<
Expand Down
6 changes: 3 additions & 3 deletions Sources/AsyncAlgorithms/Locking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
//===----------------------------------------------------------------------===//

#if canImport(Darwin)
@_implementationOnly import Darwin
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import Glibc
import Glibc
#elseif canImport(WinSDK)
@_implementationOnly import WinSDK
import WinSDK
#endif

internal struct Lock {
Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncAlgorithms/Merge/AsyncMerge2Sequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
public func merge<Base1: AsyncSequence, Base2: AsyncSequence>(_ base1: Base1, _ base2: Base2) -> AsyncMerge2Sequence<Base1, Base2>
Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncAlgorithms/Merge/AsyncMerge3Sequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
public func merge<
Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncAlgorithms/Merge/MergeStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//

@_implementationOnly import DequeModule
import DequeModule

/// The state machine for any of the `merge` operator.
///
Expand Down
4 changes: 2 additions & 2 deletions Sources/AsyncSequenceValidation/TaskDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import _CAsyncSequenceValidationSupport

#if canImport(Darwin)
@_implementationOnly import Darwin
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import Glibc
import Glibc
#elseif canImport(WinSDK)
#error("TODO: Port TaskDriver threading to windows")
#endif
Expand Down