Deprecated the after pattern supporting methods which accept a value of Future or CompletionStage. (#25817)

This commit is contained in:
kerr 2019-03-15 17:11:55 +08:00 committed by Johan Andrén
parent 38b8c08640
commit 7649264998
4 changed files with 20 additions and 10 deletions

View file

@ -637,7 +637,6 @@ public class FutureDocTest extends AbstractJavaTest {
public void useOnOnComplete() throws Exception {
{
Future<String> future = Futures.successful("foo");
// #onComplete
final ExecutionContext ec = system.dispatcher();

View file

@ -205,7 +205,7 @@ public class StreamTestKitDocTest extends AbstractJavaTest {
Duration.ofMillis(10),
system.scheduler(),
system.dispatcher(),
CompletableFuture.completedFuture(sleep)));
() -> CompletableFuture.completedFuture(sleep)));
final Pair<TestPublisher.Probe<Integer>, TestSubscriber.Probe<Integer>> pubAndSub =
TestSource.<Integer>probe(system)