Skip to content

Instantly share code, notes, and snippets.

View jordisilvazup's full-sized avatar

Jordi Henrique Silva jordisilvazup

View GitHub Profile
@jordisilvazup
jordisilvazup / HowToUseIt.java
Created June 1, 2022 15:20 — forked from rponte/HowToUseIt.java
THEORY: Example of a simple Single Thread Pool implementation in Java
public class HowToUseIt {
/**
* Usually we'll have a single instance per client
*/
private static final SingleThreadPool THREAD_POOL = new SingleThreadPool();
public void executeAsync() {
try {