mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 14:37:29 +03:00
ffa9d223cb
This is required for Swift 5, in this case we can't really assume what the new case will be, but for this use case it seems logic to return instead of crashing. |
||
---|---|---|
.. | ||
Platform | ||
BlockingObservable.swift | ||
BlockingObservable+Operators.swift | ||
Info.plist | ||
ObservableConvertibleType+Blocking.swift | ||
README.md | ||
Resources.swift | ||
RunLoopLock.swift |
RxBlocking
Set of blocking operators for easy unit testing.
Don't use these operators in production apps. These operators are only meant for testing purposes.
extension BlockingObservable {
public func toArray() throws -> [E] {}
}
extension BlockingObservable {
public func first() throws -> E? {}
}
extension BlockingObservable {
public func last() throws -> E? {}
}
extension BlockingObservable {
public func single() throws -> E? {}
public func single(_ predicate: @escaping (E) throws -> Bool) throws -> E? {}
}
extension BlockingObservable {
public func materialize() -> MaterializedSequenceResult<E>
}