toggle menu
Litho
androidJvm
switch theme
search in API
litho-testing
/
com.facebook.litho.testing
/
ThreadTestingUtils
Thread
Testing
Utils
open
class
ThreadTestingUtils
Members
Constructors
Thread
Testing
Utils
Link copied to clipboard
constructor
(
)
Types
Runnable
With
Interrupted
Exception
Link copied to clipboard
@
FunctionalInterface
interface
RunnableWithInterruptedException
Functions
fail
If
Interrupted
Link copied to clipboard
open
fun
failIfInterrupted
(
runnable
:
ThreadTestingUtils.RunnableWithInterruptedException
)
Fail with RuntimeException instead of InterruptedException if that happens.
fail
Silently
If
Interrupted
Link copied to clipboard
open
fun
failSilentlyIfInterrupted
(
runnable
:
ThreadTestingUtils.RunnableWithInterruptedException
)
Ignore the InterruptedException if that happens, instead of throwing.
run
On
Background
Thread
Link copied to clipboard
open
fun
runOnBackgroundThread
(
runnable
:
Runnable
)
:
TimeOutSemaphore
open
fun
runOnBackgroundThread
(
latch
:
TimeOutSemaphore
,
runnable
:
Runnable
)
Runs a given runnable on a background thread