class ResourceSubscriber implements FlowableSubscriber<T>, Disposable {

    public final void add(Disposable resource) {
        ObjectHelper.requireNonNull(resource, "resource is null");
        resources.add(resource);
    }

}