mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
7c3c13cecf
Fixes #26085. Adds a basic retry utility with some defaults, starts off with a 100ms wait, then 250ms, then 500ms I've applied the retry in the http client, reusing an existing function, so this also applies to retrying downloads of deno binaries in `upgrade` and `compile`. I can make a separate function that doesn't retry so this doesn't affect `upgrade` and `compile`, but it seemed desirable to have retries there too, so I left it in.
22 lines
471 B
Rust
22 lines
471 B
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// Note: Only add code in this folder that has no application specific logic
|
|
pub mod archive;
|
|
pub mod checksum;
|
|
pub mod console;
|
|
pub mod diff;
|
|
pub mod display;
|
|
pub mod draw_thread;
|
|
pub mod extract;
|
|
pub mod file_watcher;
|
|
pub mod fs;
|
|
pub mod logger;
|
|
pub mod path;
|
|
pub mod progress_bar;
|
|
pub mod result;
|
|
pub mod retry;
|
|
pub mod sync;
|
|
pub mod text_encoding;
|
|
pub mod unix;
|
|
pub mod v8;
|
|
pub mod windows;
|