public class ExecutionUtils
Utils for predefined Thread execution
public static ExecutionUtils INSTANCE
Utils for predefined Thread execution
@JvmStatic public static void ensureMainThread()
Ensures that method invocation happened on main thread
IllegalStateException - if current thread is not the main thread@JvmStatic
public static void runOnUIThread(@NotNull
java.lang.Runnable runnable)
Executes runnable on the UI thread
runnable - @JvmStatic
public static void showToast(@Nullable
android.content.Context context,
int messageRes)
Shows toast. Can be executed from background thread.
messageRes -