[FIX] Downloader callback bad API

This commit is contained in:
Gravita 2021-06-05 08:43:43 +07:00
parent 5886d1ac48
commit 1b81d5956c

View file

@ -11,6 +11,8 @@
public class Downloader { public class Downloader {
public interface DownloadCallback { public interface DownloadCallback {
void apply(long fullDiff); void apply(long fullDiff);
void onComplete(Path path);
} }
private final CompletableFuture<Void> future; private final CompletableFuture<Void> future;