-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Future#eventually should use a Supplier<Future<T>> instead of a f…
…unction, the new method was added in Vert.x 4 and the function version has been deprecated. Replace Future#eventually(Function<Void, Future<T>>) by Future#eventually(Supplier<Future<T>>).
- Loading branch information
Showing
9 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
import java.util.function.BiConsumer; | ||
import java.util.function.Consumer; | ||
import java.util.function.Function; | ||
import java.util.function.Supplier; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Julien Viet</a> | ||
|
@@ -396,7 +397,7 @@ private void testEventuallySuccessTo(Consumer<Promise<Integer>> op) { | |
Future<Integer> c = p.future(); | ||
Promise<String> p3 = Promise.promise(); | ||
Future<String> f3 = p3.future(); | ||
Future<String> f4 = f3.eventually(v -> { | ||
Future<String> f4 = f3.eventually(() -> { | ||
cnt.incrementAndGet(); | ||
return c; | ||
}); | ||
|
@@ -425,7 +426,7 @@ private void testEventuallyFailureTo(Consumer<Promise<Integer>> op) { | |
Future<Integer> c = p.future(); | ||
Promise<String> p3 = Promise.promise(); | ||
Future<String> f3 = p3.future(); | ||
Future<String> f4 = f3.eventually(v -> { | ||
Future<String> f4 = f3.eventually(() -> { | ||
cnt.incrementAndGet(); | ||
return c; | ||
}); | ||
|
@@ -823,7 +824,7 @@ public boolean tryFail(Throwable cause) { | |
public boolean failed() { throw new UnsupportedOperationException(); } | ||
public <U> Future<U> compose(Function<T, Future<U>> successMapper, Function<Throwable, Future<U>> failureMapper) { throw new UnsupportedOperationException(); } | ||
public <U> Future<U> transform(Function<AsyncResult<T>, Future<U>> mapper) { throw new UnsupportedOperationException(); } | ||
public <U> Future<T> eventually(Function<Void, Future<U>> mapper) { throw new UnsupportedOperationException(); } | ||
public <U> Future<T> eventually(Supplier<Future<U>> mapper) { throw new UnsupportedOperationException(); } | ||
public <U> Future<U> map(Function<T, U> mapper) { throw new UnsupportedOperationException(); } | ||
public <V> Future<V> map(V value) { throw new UnsupportedOperationException(); } | ||
public Future<T> otherwise(Function<Throwable, T> mapper) { throw new UnsupportedOperationException(); } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters