@Override public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
/** * calls the callable on the next physics tick (ensuring e.g. force applying) * @param <V> * @param callable * @return */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); pQueue.add(task); return task; }
/** * Invoke the specified callable during the next physics tick. This is * useful for applying forces. * * @param <V> the return type of the callable * @param callable which callable to invoke * @return Future object */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); pQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. * <p> * Callables are executed right at the beginning of the main loop. * They are executed even if the application is currently paused * or out of focus. * * @param callable The callable to run in the main jME3 thread */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); System.out.println("created apptask"); pQueueTL.get().add(task); return task; }
/** * Enqueue a callable on the currently executing thread. * * @param <V> the task's result type * @param callable the task to be executed * @return a new task (not null) */ public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); System.out.println("created apptask"); pQueueTL.get().add(task); return task; }
/** * calls the callable on the next physics tick (ensuring e.g. force applying) * @param <V> * @param callable * @return */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); pQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
/** * calls the callable on the next physics tick (ensuring e.g. force applying) * @param <V> * @param callable * @return */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); pQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
/** * calls the callable on the next physics tick (ensuring e.g. force * applying) * * @param <V> * @param callable * @return Future object */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); pQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. * <p> * Callables are executed right at the beginning of the main loop. * They are executed even if the application is currently paused * or out of focus. */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
/** * Enqueues a task/callable object to execute in the jME3 * rendering thread. * <p> * Callables are executed right at the beginning of the main loop. * They are executed even if the application is currently paused * or out of focus. * * @param callable The callable to run in the main jME3 thread */ public <V> Future<V> enqueue(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); taskQueue.add(task); return task; }
public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); System.out.println("created apptask"); pQueueTL.get().add(task); return task; }
public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); System.out.println("created apptask"); pQueueTL.get().add(task); return task; }
public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { AppTask<V> task = new AppTask<V>(callable); System.out.println("created apptask"); pQueueTL.get().add(task); return task; }