Source set: Common
Deprecated
Customization of PrefetchScheduler is no longer supported. LazyLayout will attach an appropriate scheduler internally. If you needed to customize it please file a Feature Request.
Added in 1.11.0-rc01
Deprecated in 1.11.0-rc01
@ExperimentalFoundationApi
interface PrefetchRequestScope
Scope for PrefetchRequest.execute, supplying info about how much time it has to execute requests and the type of execution mode.
Functions
availableTimeNanos
Added in 1.11.0-rc01
Deprecated in 1.11.0-rc01
fun availableTimeNanos(): Long
How much time is available to do prefetch work. Implementations of PrefetchRequest should do their best to fit their work into this time without going over.