Skip to content

Commit 9d33b6d

Browse files
sgleadowkzaher
authored andcommitted
Rename SequenceMaterializedResult to MaterlializedSequenceResult
1 parent e96ed76 commit 9d33b6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

RxBlocking/BlockingObservable+Operators.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import RxSwift
1111
#endif
1212

13-
public enum SequenceMaterializeResult<T> {
13+
public enum MaterializedSequenceResult<T> {
1414
case completed(elements: [T])
1515
case failed(elements: [T], error: Error)
1616
}
@@ -88,13 +88,13 @@ extension BlockingObservable {
8888
/// The sequence is materialized as a result type capturing how the sequence terminated (completed or error), along with any elements up to that point.
8989
///
9090
/// - returns: On completion, returns the list of elements in the sequence. On error, returns the list of elements up to that point, along with the error itself.
91-
public func materialize() -> SequenceMaterializeResult<E> {
91+
public func materialize() -> MaterializedSequenceResult<E> {
9292
return materializeResult()
9393
}
9494
}
9595

9696
extension BlockingObservable {
97-
fileprivate func materializeResult(max: Int? = nil, predicate: @escaping (E) throws -> Bool = { _ in true }) -> SequenceMaterializeResult<E> {
97+
fileprivate func materializeResult(max: Int? = nil, predicate: @escaping (E) throws -> Bool = { _ in true }) -> MaterializedSequenceResult<E> {
9898
var elements: [E] = Array<E>()
9999
var error: Swift.Error?
100100

@@ -146,13 +146,13 @@ extension BlockingObservable {
146146
}
147147

148148
if let error = error {
149-
return SequenceMaterializeResult.failed(elements: elements, error: error)
149+
return MaterializedSequenceResult.failed(elements: elements, error: error)
150150
}
151151

152-
return SequenceMaterializeResult.completed(elements: elements)
152+
return MaterializedSequenceResult.completed(elements: elements)
153153
}
154154

155-
fileprivate func elementsOrThrow(_ results: SequenceMaterializeResult<E>) throws -> [E] {
155+
fileprivate func elementsOrThrow(_ results: MaterializedSequenceResult<E>) throws -> [E] {
156156
switch results {
157157
case .failed(_, let error):
158158
throw error

0 commit comments

Comments
 (0)