a source of values whose methods block until all values have been emitted. subscribe or use one of the operator methods that reduce the values emitted to a single value.
More...
template<class T, class Observable>
class rxcpp::blocking_observable< T, Observable >
a source of values whose methods block until all values have been emitted. subscribe or use one of the operator methods that reduce the values emitted to a single value.
template<class T, class Observable>
template<class... ArgN>
subscribe
will cause this observable to emit values to the provided subscriber.
- Returns
- void
- Parameters
-
callers must provide enough arguments to make a subscriber. overrides are supported. thus subscribe(thesubscriber, composite_subscription())
will take thesubscriber.get_observer()
and the provided subscription and subscribe to the new subscriber. the on_next
, on_error
, on_completed
methods can be supplied instead of an observer if a subscription or subscriber is not provided then a new subscription will be created.
template<class T, class Observable>
template<class... ArgN>
subscribe_with_rethrow
will cause this observable to emit values to the provided subscriber.
- Note
- If the source observable calls on_error, the raised exception is rethrown by this method.
-
If the source observable calls on_error, the
on_error
method on the subscriber will not be called.
- Returns
- void
- Parameters
-
callers must provide enough arguments to make a subscriber. overrides are supported. thus subscribe(thesubscriber, composite_subscription())
will take thesubscriber.get_observer()
and the provided subscription and subscribe to the new subscriber. the on_next
, on_error
, on_completed
methods can be supplied instead of an observer if a subscription or subscriber is not provided then a new subscription will be created.