use of io.servicetalk.concurrent.api.test.InlinePublisherSubscriber.OnSubscriptionEvent in project servicetalk by apple.
the class InlinePublisherFirstStep method expectSubscriptionConsumed.
@Override
public PublisherStep<T> expectSubscriptionConsumed(Consumer<? super Subscription> consumer) {
requireNonNull(consumer);
events.add(new OnSubscriptionEvent() {
@Override
void subscription(Subscription subscription) {
consumer.accept(subscription);
}
@Override
String description() {
return "expectSubscription(" + consumer + ")";
}
});
return this;
}
Aggregations