Add comment to explain why cancel exceptions are handled differently

PiperOrigin-RevId: 493260798
This commit is contained in:
kimvde 2022-12-06 11:49:02 +00:00 committed by Ian Baker
parent bb2c4c2eff
commit 00859a78fd

View File

@ -334,6 +334,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED); TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED);
} catch (RuntimeException e) { } catch (RuntimeException e) {
releaseTransformationException = TransformationException.createForUnexpected(e); releaseTransformationException = TransformationException.createForUnexpected(e);
// cancelException is not reported through a listener. It is thrown in cancel(), as this
// method is blocking.
cancelException = e; cancelException = e;
} }
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are // Quit thread lazily so that all events that got triggered when releasing the AssetLoader are