# ExecutorCompat

# ExecutorCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/os/ExecutorCompat.java+class:androidx.core.os.ExecutorCompat)  
Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/os/ExecutorCompat "View this page in Java")

<br />

```
class ExecutorCompat
```

<br />

*** ** * ** ***

Helper for accessing features in[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html).

## Summary

|                                         ### Public functions                                         |
|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) | [create](https://developer.android.com/reference/kotlin/androidx/core/os/ExecutorCompat#create(android.os.Handler))`(handler: `[Handler](https://developer.android.com/reference/android/os/Handler.html)`)` Creates an adapter[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html)that posts all executed tasks onto the given[Handler](https://developer.android.com/reference/android/os/Handler.html). |

## Public functions

### create

Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)  

```
java-static fun create(handler: Handler): Executor
```

Creates an adapter[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html)that posts all executed tasks onto the given[Handler](https://developer.android.com/reference/android/os/Handler.html).