Skip to content

Commit ac9309b

Browse files
authored
Rename downStream to downstream (#263)
1 parent b339466 commit ac9309b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Sources/AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class CombineLatestStorage<
5858
base1: base1,
5959
base2: base2,
6060
base3: base3,
61-
downStreamContinuation: continuation
61+
downstreamContinuation: continuation
6262
)
6363

6464
case .resumeContinuation(let downstreamContinuation, let result):
@@ -108,7 +108,7 @@ final class CombineLatestStorage<
108108
base1: Base1,
109109
base2: Base2,
110110
base3: Base3?,
111-
downStreamContinuation: StateMachine.DownstreamContinuation
111+
downstreamContinuation: StateMachine.DownstreamContinuation
112112
) {
113113
// This creates a new `Task` that is iterating the upstream
114114
// sequences. We must store it to cancel it at the right times.
@@ -350,6 +350,6 @@ final class CombineLatestStorage<
350350
}
351351
}
352352

353-
stateMachine.taskIsStarted(task: task, downstreamContinuation: downStreamContinuation)
353+
stateMachine.taskIsStarted(task: task, downstreamContinuation: downstreamContinuation)
354354
}
355355
}

Sources/AsyncAlgorithms/Debounce/DebounceStateMachine.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ struct DebounceStateMachine<Base: AsyncSequence, C: Clock> {
517517
/// Actions returned by `clockSleepFinished()`.
518518
enum ClockSleepFinishedAction {
519519
/// Indicates that the downstream continuation should be resumed with the given element.
520-
case resumeDownStreamContinuation(
521-
downStreamContinuation: UnsafeContinuation<Result<Element?, Error>, Never>,
520+
case resumeDownstreamContinuation(
521+
downstreamContinuation: UnsafeContinuation<Result<Element?, Error>, Never>,
522522
element: Element
523523
)
524524
}
@@ -547,8 +547,8 @@ struct DebounceStateMachine<Base: AsyncSequence, C: Clock> {
547547
bufferedElement: nil
548548
)
549549

550-
return .resumeDownStreamContinuation(
551-
downStreamContinuation: downstreamContinuation,
550+
return .resumeDownstreamContinuation(
551+
downstreamContinuation: downstreamContinuation,
552552
element: currentElement.element
553553
)
554554
} else {

Sources/AsyncAlgorithms/Debounce/DebounceStorage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ final class DebounceStorage<Base: AsyncSequence, C: Clock>: @unchecked Sendable
238238
let action = self.stateMachine.withCriticalRegion { $0.clockSleepFinished() }
239239

240240
switch action {
241-
case .resumeDownStreamContinuation(let downStreamContinuation, let element):
242-
downStreamContinuation.resume(returning: .success(element))
241+
case .resumeDownstreamContinuation(let downstreamContinuation, let element):
242+
downstreamContinuation.resume(returning: .success(element))
243243

244244
case .none:
245245
break

Sources/AsyncAlgorithms/Zip/ZipStorage.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
4949
base1: base1,
5050
base2: base2,
5151
base3: base3,
52-
downStreamContinuation: continuation
52+
downstreamContinuation: continuation
5353
)
5454

5555
case .resumeUpstreamContinuations(let upstreamContinuations):
@@ -96,7 +96,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
9696
base1: Base1,
9797
base2: Base2,
9898
base3: Base3?,
99-
downStreamContinuation: StateMachine.DownstreamContinuation
99+
downstreamContinuation: StateMachine.DownstreamContinuation
100100
) {
101101
// This creates a new `Task` that is iterating the upstream
102102
// sequences. We must store it to cancel it at the right times.
@@ -315,6 +315,6 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
315315
}
316316
}
317317

318-
stateMachine.taskIsStarted(task: task, downstreamContinuation: downStreamContinuation)
318+
stateMachine.taskIsStarted(task: task, downstreamContinuation: downstreamContinuation)
319319
}
320320
}

0 commit comments

Comments
 (0)