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

Extensions for java.util.concurrent.ExecutorService

namedRunnable

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.

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