use of reactor.core.Fuseable.QueueSubscription 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();
assertThat(s).as("check QueueSubscription").isInstanceOf(QueueSubscription.class);
}
use of reactor.core.Fuseable.QueueSubscription in project reactor-core by reactor.
the class FluxPeekFuseableTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
Sinks.unsafe().many().unicast().onBackpressureBuffer(Queues.<Integer>get(2).get()).asFlux().doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
assertThat(s).as("check QueueSubscription").isInstanceOf(QueueSubscription.class);
}
use of reactor.core.Fuseable.QueueSubscription 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();
assertThat(s).as("check QueueSubscription").isInstanceOf(QueueSubscription.class);
}
use of reactor.core.Fuseable.QueueSubscription in project reactor-core by reactor.
the class FluxPeekTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
Sinks.unsafe().many().unicast().onBackpressureBuffer(Queues.<Integer>get(2).get()).asFlux().doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
assertThat(s).as("check QueueSubscription").isInstanceOf(QueueSubscription.class);
}
Aggregations