Merge pull request #25 from ThomasRubini/future

This commit is contained in:
Thomas Rubini 2022-12-13 22:47:50 +01:00 committed by GitHub
commit cc1ef81609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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