how can a Runnable have a return value in the ExecutorService interface?
843785Feb 25 2009 — edited Feb 26 2009in the ExecutorService interface, please conside the method:
public Future<T> submit(Runnable task, T result);
Submits a Runnable task for execution and returns a Future representing that task.
i don' understand how a Runnable can have a return value.
could someone some me a short example?