Add static import convenience methods to Done and NotUsed (#25174)
* Add Done.done() convenience for static import * Add NotUsed.notUsed() convenience for static import
This commit is contained in:
parent
c8f4a17025
commit
5c401584c3
7 changed files with 25 additions and 6 deletions
|
|
@ -33,6 +33,7 @@ import java.util.concurrent.TimeUnit;
|
|||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static akka.NotUsed.notUsed;
|
||||
import static akka.stream.testkit.StreamTestKit.PublisherProbeSubscription;
|
||||
import static akka.stream.testkit.TestPublisher.ManualProbe;
|
||||
import static org.junit.Assert.*;
|
||||
|
|
@ -451,7 +452,7 @@ public class SourceTest extends StreamTest {
|
|||
@SuppressWarnings("unused")
|
||||
public void mustCompileMethodsWithJavaDuration() {
|
||||
Source<NotUsed, Cancellable> tickSource = Source.tick(Duration.ofSeconds(1),
|
||||
Duration.ofMillis(500), NotUsed.getInstance());
|
||||
Duration.ofMillis(500), notUsed());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue