sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.utils / java.util.concurrent.ExecutorService / namedRunnable

namedRunnable

fun ExecutorService.namedRunnable(name: String, block: () -> Unit): Unit

namedRunnable can be used with SdkExecutors.diskIO and SdkExecutors.networkIO to execute tasks with the provided name making it easier to diagnose problems should they arise.

For example: SdkExecutors().diskIO.namedRunnable("some_long_running_task_name") { /* do stuff */ }