# 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)

*** ** * ** ***


```
public final class ExecutorCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/java/util/concurrent/Executor.html`.

## Summary

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/concurrent/Executor.html` | `https://developer.android.com/reference/androidx/core/os/ExecutorCompat#create(android.os.Handler)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Handler.html handler)` Creates an adapter `https://developer.android.com/reference/java/util/concurrent/Executor.html` that posts all executed tasks onto the given `https://developer.android.com/reference/android/os/Handler.html`. |

## Public methods

### create

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

```
public static @NonNull Executor create(@NonNull Handler handler)
```

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