Как выбрать ExecutorService submit или execute, если возвращаемое значение не касается меня?
Если я тестирую оба, я не видел различий между ними, кроме возвращаемого значения.
ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
threadExecutor.execute(new Task());
ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
threadExecutor.submit(new Task());