mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

This is a common pattern in media3 libraries where tasks are handled on a background thread, but the calling thread sees an immediate state update with a best-guess placeholder. This makes the integration for the caller very easy as the API surface appears to be synchronous. This util is a helper class to handle this logic and test it separately. PiperOrigin-RevId: 716233966