rx_core_operator_retry

Crates.iorx_core_operator_retry
lib.rsrx_core_operator_retry
version0.2.0
created_at2026-01-19 18:11:05.929927+00
updated_at2026-01-24 15:09:22.923251+00
descriptionretry operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2055052
size20,198
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_retry

crates.io ci codecov license

Book Page - Operator Source - Subscriber Source

Resubscribe on error up to the configured retry count.

See Also

Example

Run the example with:

cargo run -p rx_core --example operator_retry_example
let mut retried = concat((
    (0..=2).into_observable().map_never(),
    throw("error").map_never(),
))
.retry(2);

let _s1 = retried.subscribe(PrintObserver::new("retry_operator"));

Output:

retry_operator - next: 0
retry_operator - next: 1
retry_operator - next: 2
retry_operator - next: 0
retry_operator - next: 1
retry_operator - next: 2
retry_operator - next: 0
retry_operator - next: 1
retry_operator - next: 2
retry_operator - error: "error"
retry_operator - unsubscribed
Commit count: 652

cargo fmt