Change interface to use Future instead of CompletableFuture

This commit is contained in:
Thomas Rubini 2022-12-13 22:46:51 +01:00
parent 2dfd83ba6b
commit acd85f439c
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -5,8 +5,9 @@ import fr.packageviewer.pack.SearchedPackage;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
public interface Distribution {
CompletableFuture<List<SearchedPackage>> searchPackage(String packageName);
CompletableFuture<Package> getPackageTree(String packageName, int depth);
Future<List<SearchedPackage>> searchPackage(String packageName);
Future<Package> getPackageTree(String packageName, int depth);
}