Search in sources :

Example 1 with TimeoutConsumer

use of io.reactivex.rxjava3.internal.operators.flowable.FlowableTimeout.TimeoutConsumer in project RxJava by ReactiveX.

the class FlowableTimeoutWithSelectorTest method timeoutConsumerIsDisposed.

@Test
public void timeoutConsumerIsDisposed() {
    TimeoutConsumer consumer = new TimeoutConsumer(0, null);
    assertFalse(consumer.isDisposed());
    consumer.dispose();
    assertTrue(consumer.isDisposed());
}
Also used : TimeoutConsumer(io.reactivex.rxjava3.internal.operators.flowable.FlowableTimeout.TimeoutConsumer) Test(org.junit.Test)

Aggregations

TimeoutConsumer (io.reactivex.rxjava3.internal.operators.flowable.FlowableTimeout.TimeoutConsumer)1 Test (org.junit.Test)1