Solution to https://community.cesium.com/t/it-took-more-than-ten-seconds-to-exit/23354 problem #1664
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear Cesium Official Team,
Hello!
This pull request primarily addresses the issue discussed on the Cesium forum regarding this link It took more than ten seconds to exit.
The approach is as follows: it tracks all pending requests made by the UnrealAssetAccessor class, and when a UCesiumRasterOverlay or Cesium3DTileset instance is destroyed, it simultaneously cancels all pending requests associated with that instance.
Its limitation: for Cesium Ion map resources, it determines this in a hard-coded manner (e.g., for Bing Maps or Cesium World Terrain).
For a large open-source repository, this code is not particularly perfect. I do not have high expectations for the acceptance of this pull request, but I hope my approach is helpful to you, and I hope you will pay attention to this issue. This would make it more friendly for developers in regions with poor network conditions or those facing network instability.
Best regards.