Searched refs:newTaskFor (Results 1 - 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DExecutorCompletionService.java126 private RunnableFuture<V> newTaskFor(Callable<V> task) { method in class:ExecutorCompletionService
130 return aes.newTaskFor(task);
133 private RunnableFuture<V> newTaskFor(Runnable task, V result) { method in class:ExecutorCompletionService
137 return aes.newTaskFor(task, result);
182 RunnableFuture<V> f = newTaskFor(task);
189 RunnableFuture<V> f = newTaskFor(task, result);
H A DAbstractExecutorService.java49 * {@link RunnableFuture} returned by {@code newTaskFor}, which defaults
53 * returned. Subclasses may override the {@code newTaskFor} methods
65 * protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) {
68 * protected <V> RunnableFuture<V> newTaskFor(Runnable r, V v) {
92 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { method in class:AbstractExecutorService
107 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { method in class:AbstractExecutorService
117 RunnableFuture<Void> ftask = newTaskFor(task, null);
128 RunnableFuture<T> ftask = newTaskFor(task, result);
139 RunnableFuture<T> ftask = newTaskFor(task);
240 RunnableFuture<T> f = newTaskFor(
[all...]
H A DForkJoinPool.java3451 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { method in class:ForkJoinPool
3455 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { method in class:ForkJoinPool
/libcore/jsr166-tests/src/test/java/jsr166/
H A DExecutorCompletionServiceTest.java158 * Submitting to underlying AES that overrides newTaskFor(Callable)
159 * returns and eventually runs Future returned by newTaskFor.
171 protected <T> RunnableFuture<T> newTaskFor(Callable<T> c) {
189 * Submitting to underlying AES that overrides newTaskFor(Runnable,T)
190 * returns and eventually runs Future returned by newTaskFor.
202 protected <T> RunnableFuture<T> newTaskFor(Runnable t, T r) {
H A DThreadPoolExecutorSubclassTest.java153 protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) { method in class:ThreadPoolExecutorSubclassTest.CustomTPE
156 protected <V> RunnableFuture<V> newTaskFor(Runnable r, V v) { method in class:ThreadPoolExecutorSubclassTest.CustomTPE

Completed in 151 milliseconds