🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

PrefetchRequest

A request for prefetch which can be submitted to a PrefetchScheduler to execute during idle time.

Source set: Common
public sealed interface PrefetchRequest

A request for prefetch which can be submitted to a PrefetchScheduler to execute during idle time.

Functions

execute

Source set: Common
public fun PrefetchRequestScope.execute(): Boolean

Gives this request a chance to execute work. It should only do work if it thinks it can finish it within PrefetchRequestScope.availableTimeNanos.

Return

whether this request has more work it wants to do, but ran out of time. true indicates this request wants to have execute called again to do more work, while false indicates its work is complete.