Package 

Interface ThreadSwitcher


  • 
    public interface ThreadSwitcher
    
                        

    Common implementation for classes that exposes methods to execute tasks in the background or post tasks in the Main / UI thread.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit mainThread(Runnable runnable) Posts the task in the Main / UI thread.
      abstract Unit backgroundThread(Runnable runnable) Enqueues the task to be run on a background thread.
      • Methods inherited from class com.auth0.android.request.internal.ThreadSwitcher

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait