public void requireLoaded(){
  if (__loaded)   return;
  if (__loading_thread == null)   throw new IllegalStateException("Loading has not started yet!");
  try {
    __loading_thread.join();
    __loaded=true;
  }
 catch (  InterruptedException e) {
  }
}

public void requireLoaded ( ) { if ( __loaded ) return ; if ( __loading_thread == null ) throw new IllegalStateException ( "Loading has not started yet!" ) ; try { __loading_thread . join ( ) ; __loaded = true ; } catch ( InterruptedException e ) { } }
require the task to be completely loaded before continuing . this ensures that the task is prepared and ready to go before use . this is a blocking method , but may return immediately if loading is already complete .
