Skip to content

Instantly share code, notes, and snippets.

View rwperrott's full-sized avatar
🏠
Working from home

Richard Perrott rwperrott

🏠
Working from home
  • Bucks., UK
View GitHub Profile
@rwperrott
rwperrott / LimitedExecutorServiceWrapper.java
Last active April 29, 2023 17:03 — forked from alexkasko/LimitedExecutorServiceWrapper.java
ExecutorService wrapper, limits max parallel threads
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;