refine file downloader example

This commit is contained in:
Chunting Gu
2021-06-15 18:09:36 +08:00
parent e27338854c
commit b76ce67726
2 changed files with 17 additions and 8 deletions
+3 -2
View File
@@ -55,8 +55,9 @@ public:
}
// Set progress callback to be informed about the read progress.
// TODO: What about write?
// TODO: std::move?
// NOTE: Don't use move semantics because in practice, there is no difference
// between copying and moving an object of a closure type.
// TODO: Support write progress
void set_progress_callback(ProgressCallback callback) {
progress_callback_ = callback;
}