Returns if the current thread is main thread.
JobDispatcher.dispatchOnMainThread(Unit) { assertTrue(isMainThread())}JobDispatcher.dispatchOnBackgroundThread(Unit) { assertFalse(isMainThread())}