-
Simplify thread interruption for downloads. · 32516d85
- Stop throwing InterruptedException from CacheUtil. When a CacheUtil operation throws or returns, the caller should always check its own state to determine whether they canceled the operation. If a caller is trying to catch InterruptedException separately to IOException to do something different in that case, they're probably doing the wrong thing. So it's simpler, and probably less error prone, just to throw an IOException in the case of interruption. - Throwing InterruptedIOException is also consistent with what our Extractor and DataSource implementations do. Issue: #5978 PiperOrigin-RevId: 309411556
olly committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| java/com/google/android/exoplayer2 | Loading commit data... | |
| AndroidManifest.xml | Loading commit data... |