JAL-3690 switching to CompletableFuture to allow chaining
[jalview.git] / src / jalview / ws / WSDiscovererI.java
index b8a1d43..e9eedd3 100644 (file)
@@ -4,7 +4,7 @@ import jalview.ws.api.ServiceWithParameters;
 
 import java.net.URL;
 import java.util.List;
-import java.util.concurrent.Future;
+import java.util.concurrent.CompletableFuture;
 
 public interface WSDiscovererI
 {
@@ -27,7 +27,7 @@ public interface WSDiscovererI
   
   public void removeServiceChangeListener(ServiceChangeListener listener);
 
-  public Future<WSDiscovererI> startDiscoverer();
+  public CompletableFuture<WSDiscovererI> startDiscoverer();
 
   public String getErrorMessages();