| Crates.io | rx_core_operator_retry |
| lib.rs | rx_core_operator_retry |
| version | 0.2.0 |
| created_at | 2026-01-19 18:11:05.929927+00 |
| updated_at | 2026-01-24 15:09:22.923251+00 |
| description | retry operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2055052 |
| size | 20,198 |
Resubscribe on error up to the configured retry count.
Result values.Result values into next and error signals.Never as the error type to guard pipelines at compile time.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