Thread Looper Controller
class ThreadLooperController(val layoutLooper: ShadowLooper = Shadows.shadowOf(
Whitebox.invokeMethod<Any>(ComponentTree::class.java, "getDefaultLayoutThreadLooper")
as Looper)) : BaseThreadLooperController
Helper class extracting looper functionality from BackgroundLayoutLooperRule that can be reused in other TestRules
Constructors
Link copied to clipboard
fun ThreadLooperController(layoutLooper: ShadowLooper = Shadows.shadowOf(
Whitebox.invokeMethod<Any>(ComponentTree::class.java, "getDefaultLayoutThreadLooper")
as Looper))
Functions
Link copied to clipboard
Runs one task on the background thread, blocking until it completes successfully or throws an exception.
Link copied to clipboard
Link copied to clipboard
Runs through all tasks on the background thread, blocking until it completes successfully or throws an exception.