---
title: "runAndroidComposeUiTestNonSuspendingLambda"
description: ""
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** Replaced with same function, but with suspend block, runTextContext, testTimeout

```kotlin
@ExperimentalTestApi
fun <A : ComponentActivity> runAndroidComposeUiTestNonSuspendingLambda(
    activityClass: Class<A>,
    effectContext: CoroutineContext = EmptyCoroutineContext,
    block: AndroidComposeUiTest<A>.() -> Unit,
)
```


<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** Replaced with same function, but with suspend block, runTextContext, testTimeout

```kotlin
@ExperimentalTestApi
inline fun <reified A : ComponentActivity> runAndroidComposeUiTestNonSuspendingLambda(
    effectContext: CoroutineContext = EmptyCoroutineContext,
    noinline block: AndroidComposeUiTest<A>.() -> Unit,
)
```


