service / com.scurab.android.uitor.tools / Executor / runInMainThreadBlocking

runInMainThreadBlocking

open static fun <T : Any!> runInMainThreadBlocking(op: Action<T>!): T

Run op in main thread with 2s timeout

Parameters

op - Action<T>!:

open static fun <T : Any!> runInMainThreadBlocking(timeout: Int, op: Action<T>!): T

Parameters

timeout - Int:

op - Action<T>!:

open static fun <T : Any!> runInMainThreadBlocking(handler: Handler!, op: Action<T>!, timeout: Int): T

Run code in main thread and block current running thread

Parameters

handler - Handler!:

op - Action<T>!:

timeout - Int: