WorkerThread, how to pass an undefined method to be executed..?

I’m not even sure if the thread title makes sense. But essentially, I’m trying to use a scheduled executor to execute an undefined method.

This is the pseudo class:


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * A simple worker thread. This should be used for things such as loading game assets,
 * or constructing a new region for your game.. without putting the stress on the render Processor,
 * or optional LogicThread.
 */
public class WorkerThread {
	
	public WorkerThread(Method method) { // pseudo
		ExecutorService executorService = Executors.newFixedThreadPool(1);
		executorService.execute(new Runnable() {
		    public void run() {
				method(); // pseudo
		    }
		});
		executorService.shutdown();
	}

}

It’s part of an abstract lwjgl wrapper, which I’ve been working on for a little over a month now. And have a handful of followers who use it religiously to power their games. But I’ve never done anything like THIS specifically so I’m lost :expressionless: