Add inline comment describing the MaterializedSequenceResult enum type

This commit is contained in:
Stewart Gleadow 2017-08-21 21:02:53 +10:00 committed by Krunoslav Zaher
parent 1b9962b817
commit 4469683446

View File

@ -10,6 +10,14 @@
import RxSwift import RxSwift
#endif #endif
/// The `MaterializedSequenceResult` enum represents the materialized
/// output of a BlockingObservable.
///
/// If the sequence terminates successfully, the result is represented
/// by `.completed` with the array of elements.
///
/// If the sequene terminates with error, the result is represented
/// by `.failed` with both the array of elements and the terminating error.
public enum MaterializedSequenceResult<T> { public enum MaterializedSequenceResult<T> {
case completed(elements: [T]) case completed(elements: [T])
case failed(elements: [T], error: Error) case failed(elements: [T], error: Error)