RxCpp
The Reactive Extensions for Native (RxCpp) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
|
Subscribe will cause the source observable to emit values to the provided subscriber. More...
#include "../rx-includes.hpp"
Go to the source code of this file.
Namespaces | |
rxcpp | |
rxcpp::operators | |
Macros | |
#define | RXCPP_OPERATORS_RX_SUBSCRIBE_HPP |
Functions | |
template<class T , class... ArgN> | |
auto | rxcpp::operators::subscribe (ArgN &&...an) -> detail::subscribe_factory< decltype(make_subscriber< T >(std::forward< ArgN >(an)...))> |
Subscribe will cause the source observable to emit values to the provided subscriber. More... | |
auto | rxcpp::operators::as_dynamic () -> detail::dynamic_factory |
auto | rxcpp::operators::as_blocking () -> detail::blocking_factory |
Subscribe will cause the source observable to emit values to the provided subscriber.
ArgN | types of the subscriber parameters |
an | the parameters for making a subscriber |
The arguments of subscribe are forwarded to rxcpp::make_subscriber function. Some possible alternatives are:
on_next
handler: on_next
and on_error
handlers: on_next
and on_completed
handlers: on_next
, on_error
, and on_completed
handlers: All the alternatives above also support passing rxcpp::composite_subscription instance. For example:
If neither subscription nor subscriber are provided, then a new subscription is created and returned as a result:
For more details, see rxcpp::make_subscriber function description.
#define RXCPP_OPERATORS_RX_SUBSCRIBE_HPP |