I want to run some Extension Methods in Synchronous Task

Is this is correct way to use as following ?

import com.google.appinventor.components.runtime.util.AsynchUtil;

 AsynchUtil.runAsynchronously(new Runnable() {
      @Override
      public void run() {
       myMethod();
      }
      });