MessageQueueThreadImpl

Encapsulates a Thread that has a Looper running on it that can accept Runnables.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun assertIsOnThread()
open override fun assertIsOnThread(message: String)

Asserts isOnThread, throwing a AssertionException (NOT an AssertionError) if the assertion fails.

Link copied to clipboard
open override fun <T> callOnQueue(callable: Callable<T>): Future<T>

Runs the given Callable on this Thread. It will be submitted to the end of the event queue even if it is being submitted from the same queue Thread.

Link copied to clipboard

Returns the perf counters taken when the framework was started. This method is intended to be used for instrumentation purposes.

Link copied to clipboard
open override fun isIdle(): Boolean

Resets the perf counters. This is useful if the RN threads are being re-used. This method is intended to be used for instrumentation purposes.

Link copied to clipboard
open override fun isOnThread(): Boolean
Link copied to clipboard
open override fun quitSynchronous()

Quits this queue's Looper. If that Looper was running on a different Thread than the current Thread, also waits for the last message being processed to finish and the Thread to die.

Link copied to clipboard
open override fun resetPerfStats()

Resets the perf counters. This is useful if the RN threads are being re-used. This method is intended to be used for instrumentation purposes.

Link copied to clipboard
open override fun runOnQueue(runnable: Runnable): Boolean

Runs the given Runnable on this Thread. It will be submitted to the end of the event queue even if it is being submitted from the same queue Thread.