SyntaxFix
Write A Post
Hire A Developer
Questions
Executors.newSingleThreadExecutor(r -> new Thread(r, "someName")).submit(getJob()); Runnable getJob() { return () -> { // your job }; }