Skip to content

Instantly share code, notes, and snippets.

View lelodois's full-sized avatar
😀

Léo José da Costa lelodois

😀
  • Cora
  • São Paulo - SP
View GitHub Profile
@lelodois
lelodois / java
Last active April 19, 2024 02:25
Using Executor Service
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Executors;
public class MyTask {
private Callable<Boolean> createTask(Integer amount, MyTaskParam taskParam) {
return () -> taskParam.isAnyGreaterTo(amount);
}