2015-07-12 19:44:56 +03:00
|
|
|
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.***
|
|
|
|
|
|
|
|
|
|
|
|
```swift
|
2017-08-01 20:26:54 +03:00
|
|
|
extension BlockingObservable {
|
2015-09-08 23:32:09 +03:00
|
|
|
public func toArray() throws -> [E] {}
|
|
|
|
}
|
2015-07-12 19:44:56 +03:00
|
|
|
|
2017-08-01 20:26:54 +03:00
|
|
|
extension BlockingObservable {
|
2019-04-22 17:40:06 +03:00
|
|
|
public func first() throws -> Element? {}
|
2015-09-08 23:32:09 +03:00
|
|
|
}
|
2015-07-12 19:44:56 +03:00
|
|
|
|
2017-08-01 20:26:54 +03:00
|
|
|
extension BlockingObservable {
|
2019-04-22 17:40:06 +03:00
|
|
|
public func last() throws -> Element? {}
|
2015-09-08 23:32:09 +03:00
|
|
|
}
|
2017-07-28 00:18:46 +03:00
|
|
|
|
2017-08-01 20:26:54 +03:00
|
|
|
extension BlockingObservable {
|
2019-04-22 17:40:06 +03:00
|
|
|
public func single() throws -> Element? {}
|
|
|
|
public func single(_ predicate: @escaping (E) throws -> Bool) throws -> Element? {}
|
2017-07-28 00:18:46 +03:00
|
|
|
}
|
2017-08-17 04:55:18 +03:00
|
|
|
|
|
|
|
extension BlockingObservable {
|
2019-04-22 17:40:06 +03:00
|
|
|
public func materialize() -> MaterializedSequenceResult<Element>
|
2017-08-17 04:55:18 +03:00
|
|
|
}
|
2015-07-12 19:44:56 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|