Skip to content

Instantly share code, notes, and snippets.

View martin640's full-sized avatar
🐧

Martin M. martin640

🐧
  • Bánovce nad Bebravou, Slovakia
View GitHub Profile
@martin640
martin640 / LooperCompat.java
Last active February 23, 2019 10:44
Simple looper for multiple synchronized operations in Java
package sk.gocrafterlp.networkconnections.handler;
import java.util.ArrayList;
import java.util.List;
public class LooperCompat {
private final List<Message> messageQueue;
private boolean running, exiting;
private Thread thread;