coroutineworker / com.autodesk.coroutineworker / threadSafeSuspendCallbackWithValue

threadSafeSuspendCallbackWithValue

suspend fun <T> threadSafeSuspendCallbackWithValue(startAsync: ((T) -> Unit) -> CancellationLambda): T

A convenience wrapper for threadSafeSuspendCallback, for when you don't intend to resume the continuation with an exception