runOnBackgroundThread

Runs a given runnable on a background thread

Return

a TimeOutSemaphore (0 permits) that is released when the action is completed. If an exception occurs within the supplied runnable, it is set on the TimeOutSemaphore

Parameters

runnable

The runnable to run


open fun runOnBackgroundThread(latch: TimeOutSemaphore, runnable: Runnable)

Runs a given runnable on a background thread

Parameters

latch

TimeOutSemaphore that is released when the runnable finishes

runnable

The runnable to run