use of reactor.core.Fuseable in project reactor-core by reactor.
the class FluxPeekFuseableTest method syncFusionAvailable.
@Test
public void syncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
Flux.range(1, 2).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream: " + s, s instanceof Fuseable.QueueSubscription);
}
use of reactor.core.Fuseable in project reactor-core by reactor.
the class FluxPeekFuseableTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
UnicastProcessor.create(Queues.<Integer>get(2).get()).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream" + s, s instanceof Fuseable.QueueSubscription);
}
use of reactor.core.Fuseable in project reactor-core by reactor.
the class FluxPeekTest method syncFusionAvailable.
@Test
public void syncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
Flux.range(1, 2).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream: " + s, s instanceof Fuseable.QueueSubscription);
}
use of reactor.core.Fuseable in project reactor-core by reactor.
the class FluxPeekTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
UnicastProcessor.create(Queues.<Integer>get(2).get()).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream" + s, s instanceof Fuseable.QueueSubscription);
}
Aggregations