---
title: "LocalTextClassifierCoroutineContext"
description: "The [CoroutineContext] used for launching [TextClassifier] operations within the selection
features.

This context is expected to be associated with a worker thread to ensure that text
classification, which can be a time-consuming operation, does not block the UI thread. Providing
a [CoroutineContext] not backed by a worker thread may lead to performance issues or unexpected
behavior with [TextClassifier]."
type: "property"
---

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


<a id='references'></a>

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


```kotlin
val LocalTextClassifierCoroutineContext =
staticCompositionLocalOf<CoroutineContext> { Dispatchers.IO }
```


The `CoroutineContext` used for launching `TextClassifier` operations within the selection
features.

This context is expected to be associated with a worker thread to ensure that text
classification, which can be a time-consuming operation, does not block the UI thread. Providing
a `CoroutineContext` not backed by a worker thread may lead to performance issues or unexpected
behavior with `TextClassifier`.



