# ThrowingRunnable

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/util/ThrowingRunnable.java+class:androidx.media3.common.util.ThrowingRunnable)

*** ** * ** ***


```
@UnstableApi
@FunctionalInterface
interface ThrowingRunnable<E : Exception?>
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/java/lang/Runnable.html`-like interface that allows throwing checked exceptions.

| Parameters |
|---|---|
| `<E : https://developer.android.com/reference/java/lang/Exception.html?>` | The type of exception that the operation may throw. |

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/ThrowingRunnable#run()()` Runs the operation. |

## Public functions

### run

```
fun run(): Unit
```

Runs the operation.

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/ThrowingRunnable` |   |