# OperationKt

Added in 2.9.0

*** ** * ** ***


```
public final class OperationKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/work/Operation.State.SUCCESS` | `https://developer.android.com/reference/androidx/work/OperationKt#(androidx.work.Operation).await()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/work/Operation receiver)` Awaits an `https://developer.android.com/reference/androidx/work/Operation` without blocking a thread. |

## Public methods

### await

Artifact: [androidx.work:work-runtime](https://developer.android.com/jetpack/androidx/releases/work) [View Source](https://cs.android.com/search?q=file:androidx/work/Operation.kt+function:await)

```
public static final @NonNull Operation.State.SUCCESS await(@NonNull Operation receiver)
```

Awaits an `https://developer.android.com/reference/androidx/work/Operation` without blocking a thread.


This method returns the terminal state of the \[Operation\] which is \[Operation.State.SUCCESS\] or
throws a \[Throwable\] that represents why the \[Operation\] failed.