Deprecated the after pattern supporting methods which accept a value of Future or CompletionStage. (#25817)
This commit is contained in:
parent
38b8c08640
commit
7649264998
4 changed files with 20 additions and 10 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue