A ScheduledExecutorService backed by a CachedThreadPool such that it automatically creates new threads as needed. Use as you would a ScheduledThreadPoolExecutor, except for two things:
- Instead of using Executors to create, instantiate with new ScheduledExecutorServiceVariablePool()
schedule(Callable<V>, long, TimeUnit) is currently not supported.Actually, no, this is now supported. :)