RxSwift/RxBlocking/BlockingObservable.swift

26 lines
638 B
Swift
Raw Normal View History

2015-10-19 21:28:49 +03:00
//
// BlockingObservable.swift
2016-10-15 15:38:22 +03:00
// RxBlocking
2015-10-19 21:28:49 +03:00
//
// Created by Krunoslav Zaher on 10/19/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import Foundation
#if !RX_NO_MODULE
import RxSwift
#endif
/**
`BlockingObservable` is a variety of `Observable` that provides blocking operators.
It can be useful for testing and demo purposes, but is generally inappropriate for production applications.
If you think you need to use a `BlockingObservable` this is usually a sign that you should rethink your
design.
*/
public struct BlockingObservable<E> {
let timeout: RxTimeInterval?
2015-10-19 21:28:49 +03:00
let source: Observable<E>
}