---
title: "PrefetchRequestScope"
description: "Scope for [PrefetchRequest.execute], supplying info about how much time it has to execute
requests and the type of execution mode."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


> **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.


```kotlin
@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

```kotlin
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.



