@@ -0,0 +1,625 @@
+package org.jsonq.util;%0A%0Aimport java.util.concurrent.*;%0Aimport java.util.*;%0A%0A/**%0A * Rudimentary scheduler for executing things in the future%0A */%0Apublic final class Scheduler %7B%0A%0A%09// member variables%0A%09private static final Executor _executor = Executors.newSingleThreadExecutor();%0A%09//private static final Timer _timer;%0A%09%09//_timer = new Timer( %22SystemEventQueue%22 );%0A%0A%09/**%0A%09 * Private Constructor - singleton %0A%09 */%0A%09private Scheduler() %7B%7D%0A%0A%09/**%0A%09 * Runs the given code on another thread%0A%09 *%0A%09 * @param runnable the Runnable to execute%0A%09 */%0A%09public static void runAsync( Runnable runnable ) %7B%0A%09%09_executor.execute( runnable );%0A%09%7D%0A%7D%0A

Add Scheduler for running asynchronous tasks