Move retry backoff into codex-async-utils (#46330)

Move the exponential backoff helper into `codex-async-utils` so
`codex-cloud-config` can use it without a runtime dependency on `codex-core`.
Keep `codex-core` as a development dependency for cloud-config tests.

Preserve the existing retry delays and jitter, and re-export `backoff` from
`codex_core::util` for existing callers.

GitOrigin-RevId: 338f3194e166e77003da532310ff5be78a0eac9e
This commit is contained in:
Michael Bolin authored and copyberry committed 2026-09-18 00:25:37 +00:00
1 parent 608e4cc9a1
commit ff73d63e64
7 files changed
+28 -15

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
mod backoff;
pub use backoff::backoff;
use std::future::Future;
use tokio_util::sync::CancellationToken;