Skip to content

Commit 4469683

Browse files
sgleadowkzaher
authored andcommitted
Add inline comment describing the MaterializedSequenceResult enum type
1 parent 1b9962b commit 4469683

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

RxBlocking/BlockingObservable+Operators.swift

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

13+
/// The `MaterializedSequenceResult` enum represents the materialized
14+
/// output of a BlockingObservable.
15+
///
16+
/// If the sequence terminates successfully, the result is represented
17+
/// by `.completed` with the array of elements.
18+
///
19+
/// If the sequene terminates with error, the result is represented
20+
/// by `.failed` with both the array of elements and the terminating error.
1321
public enum MaterializedSequenceResult<T> {
1422
case completed(elements: [T])
1523
case failed(elements: [T], error: Error)

0 commit comments

Comments
 (0)