open static fun <T : Any!> runInMainThreadBlocking(op: Action<T>!): T
Run op in main thread with 2s timeout
open static fun <T : Any!> runInMainThreadBlocking(timeout: Int, op: Action<T>!): T
timeout
- Int:
open static fun <T : Any!> runInMainThreadBlocking(handler: Handler!, op: Action<T>!, timeout: Int): T
Run code in main thread and block current running thread
handler
- Handler!:
timeout
- Int: