public static class RunnableExecutor.CurrentThreadExecutor extends Object implements RunnableExecutor
RunnableExecutor.CurrentThreadExecutor
currentThreadExecutor
public void invoke(boolean wait, Runnable r)
invoke
in interface RunnableExecutor
wait
- if true method waits until Runnable.run()
is completed, otherwise don't wait.r
- the Runnable
to be executed.