Skip to content

Commit 340277c

Browse files
committed
Split logic into multiple files, adapt merge3 and incorporate PR feedback
1 parent 152306b commit 340277c

File tree

7 files changed

+1345
-1363
lines changed

7 files changed

+1345
-1363
lines changed

Sources/AsyncAlgorithms/AsyncMerge2Sequence.swift

Lines changed: 0 additions & 1077 deletions
This file was deleted.

Sources/AsyncAlgorithms/AsyncMerge3Sequence.swift

Lines changed: 0 additions & 284 deletions
This file was deleted.

Sources/AsyncAlgorithms/Locking.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal struct Lock {
9696
///
9797
/// - Parameter body: The block to execute while holding the lock.
9898
/// - Returns: The value returned by the block.
99-
public func withLock<T>(_ body: () throws -> T) rethrows -> T {
99+
func withLock<T>(_ body: () throws -> T) rethrows -> T {
100100
self.lock()
101101
defer {
102102
self.unlock()
@@ -105,7 +105,7 @@ internal struct Lock {
105105
}
106106

107107
// specialise Void return (for performance)
108-
public func withLockVoid(_ body: () throws -> Void) rethrows -> Void {
108+
func withLockVoid(_ body: () throws -> Void) rethrows -> Void {
109109
try self.withLock(body)
110110
}
111111
}

0 commit comments

Comments
 (0)