coroutineworker / com.autodesk.coroutineworker / CoroutineWorker / performAndWait

performAndWait

suspend fun <T> performAndWait(block: suspend <ERROR CLASS>.() -> T): T

Platform and version requirements: JVM

Enqueues the background work to run, suspends while the work is in progress, and returns the result of that background work back to the calling thread

Parameters

block - The work block to execute in the background