RealmExecutor

class RealmExecutor(tag: String?) : CloseableExecutor

An Executor that executes given work in a thread that has the Android Looper running. An work posted in execute can observe Realm objects due to presence of the Looper in the execution thread. The internal Thread will have Process.THREAD_PRIORITY_BACKGROUND, hence it is recommended to use this executor for non critical work.

Parameters

tag

The thread name of the handler thread that will be created.

Constructors

RealmExecutor
Link copied to clipboard
fun RealmExecutor(tag: String? = null)
The thread name of the handler thread that will be created.

Functions

close
Link copied to clipboard
open override fun close()
execute
Link copied to clipboard
open override fun execute(p0: Runnable)