rx_core_operator_buffer_count

Crates.iorx_core_operator_buffer_count
lib.rsrx_core_operator_buffer_count
version0.2.0
created_at2026-01-19 13:05:23.940482+00
updated_at2026-01-24 15:04:48.505929+00
descriptionbuffer_count operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054588
size14,354
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_buffer_count

crates.io ci codecov license

Collect values into fixed-size buffers before emitting them.

Example

cargo run -p rx_core --example operator_buffer_count_example
let _s = (1..=25)
    .into_observable()
    .buffer_count(3)
    .subscribe(PrintObserver::new("buffer_count_operator"));
buffer_count_operator - next: [1, 2, 3]
buffer_count_operator - next: [4, 5, 6]
buffer_count_operator - next: [7, 8, 9]
buffer_count_operator - next: [10, 11, 12]
buffer_count_operator - next: [13, 14, 15]
buffer_count_operator - next: [16, 17, 18]
buffer_count_operator - next: [19, 20, 21]
buffer_count_operator - next: [22, 23, 24]
buffer_count_operator - next: [25]
buffer_count_operator - completed
buffer_count_operator - unsubscribed
Commit count: 652

cargo fmt