RxSwift/RxBlocking/README.md

33 lines
753 B
Markdown
Raw Normal View History

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-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? {}
}
extension BlockingObservable {
2019-04-22 17:40:06 +03:00
public func materialize() -> MaterializedSequenceResult<Element>
}
2015-07-12 19:44:56 +03:00
```