Return an observable that emits connected, non-overlapping windows, each containing at most count items from the source observable. If the skip parameter is set, return an observable that emits windows every skip items containing at most count items from the source observable.
More...
Go to the source code of this file.
|
template<class... AN> |
auto | rxcpp::operators::window (AN &&...an) -> operator_factory< window_tag, AN... > |
| Return an observable that emits connected, non-overlapping windows, each containing at most count items from the source observable. If the skip parameter is set, return an observable that emits windows every skip items containing at most count items from the source observable. More...
|
|
Return an observable that emits connected, non-overlapping windows, each containing at most count items from the source observable. If the skip parameter is set, return an observable that emits windows every skip items containing at most count items from the source observable.
- Parameters
-
count | the maximum size of each window before it should be completed |
skip | how many items need to be skipped before starting a new window |
- Returns
- Observable that emits connected, non-overlapping windows, each containing at most count items from the source observable. If the skip parameter is set, return an Observable that emits windows every skip items containing at most count items from the source observable.
- Sample Code
int counter = 0;
values.
int id = counter++;
printf("[window %d] Create window\n", id);
[id](int v){printf("[window %d] OnNext: %d\n", id, v);},
[id](){printf("[window %d] OnCompleted\n", id);});
});
- Sample Code
int counter = 0;
values.
int id = counter++;
printf("[window %d] Create window\n", id);
[id](int v){printf("[window %d] OnNext: %d\n", id, v);},
[id](){printf("[window %d] OnCompleted\n", id);});
});
#define RXCPP_OPERATORS_RX_WINDOW_HPP |