common : add download cancellation and temp file cleanup (#21813)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët
2026-04-13 11:18:23 +02:00
committed by GitHub
parent ce8fd4b1a6
commit aa00911d12
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ public:
virtual void on_start(const common_download_progress & p) = 0;
virtual void on_update(const common_download_progress & p) = 0;
virtual void on_done(const common_download_progress & p, bool ok) = 0;
virtual bool is_cancelled() const { return false; }
};
struct common_remote_params {