class ResourceSubscriber implements FlowableSubscriber<T>, Disposable {

    @Override
    public final void dispose() {
        if (SubscriptionHelper.cancel(s)) {
            resources.dispose();
        }
    }

}