public static void doInBackground ( final OnBackgroundJob onBackgroundJob ) { new Thread ( new Runnable ( ) { @ Override public void run ( ) { onBackgroundJob . doOnBackground ( ) ; } } ) . start ( ) ; }
Executes the provided code immediately on a background thread