Stop the flow before examining the stream to avoid `ConcurrentModificationException`. **cherry-pick to 5.0.x** # Conflicts: # gradle/wrapper/gradle-wrapper.jar # gradle/wrapper/gradle-wrapper.properties
Stop the flow before examining the stream to avoid `ConcurrentModificationException`. **cherry-pick to 5.0.x** # Conflicts: # gradle/wrapper/gradle-wrapper.jar # gradle/wrapper/gradle-wrapper.properties