mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
21 lines
451 B
Markdown
21 lines
451 B
Markdown
|
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
|
||
|
public func toArray<E>(source: Observable<E>)
|
||
|
-> RxResult<[E]> {}
|
||
|
|
||
|
public func first<E>(source: Observable<E>)
|
||
|
-> RxResult<E?> {}
|
||
|
|
||
|
public func last<E>(source: Observable<E>)
|
||
|
-> RxResult<E?> {}
|
||
|
```
|
||
|
|
||
|
|