Пример #1
0
		public void runOnUiThread(java.lang.Runnable action)
		{
			if (java.lang.Thread.currentThread() != mUiThread)
			{
				mHandler.post(action);
			}
			else
			{
				action.run();
			}
		}
Пример #2
0
 internal override void schedule(java.lang.Runnable runnable, int ms)
 {
     Task task = Task.Delay(ms);
     task.ContinueWith(_ => runnable.run());
 }