mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
23 lines
591 B
Swift
23 lines
591 B
Swift
//
|
|
// BlockingObservable.swift
|
|
// RxBlocking
|
|
//
|
|
// Created by Krunoslav Zaher on 10/19/15.
|
|
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
|
|
//
|
|
|
|
import RxSwift
|
|
|
|
/**
|
|
`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?
|
|
let source: Observable<E>
|
|
}
|