the flush method uses the publisher