Module qilletni.api

Interface BackgroundTaskExecutor


public interface BackgroundTaskExecutor
Allows for background processes to be run, or effectively async callbacks. This is done by passing this interface a Runnable, which runs a condition ID. With that, the condition ID can be activated, meaning the next break in expression invocation will run the runnable.
Qilletni strictly doesn't support multithreading, but native Java functions can for processing. Any async thread should NOT use any Qilletni APIs, aside from this class or any others that are deemed safe.