public void taskNow(final Runnable r,boolean async){
  if (async) {
    async(r);
  }
 else   if (r != null) {
    r.run();
  }
}

public void taskNow ( final Runnable r , boolean async ) { if ( async ) { async ( r ) ; } else if ( r != null ) { r . run ( ) ; } }
run a task on the current thread or asynchronously - if it ' s already the main thread , it will jst call run ( )
