Package 

Interface MainThreadScheduler

    • Method Summary

      Modifier and Type Method Description
      abstract Unit postAndAwait(Runnable action) Runs action on the main thread and blocks the caller until it completes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • postAndAwait

         abstract Unit postAndAwait(Runnable action)

        Runs action on the main thread and blocks the caller until it completes. If the caller is already on the main thread, action runs inline.