package ch21concurrent.examples; import java.util.concurrent.*; /** * WithinThreadExecutor * <p/> * Executor that executes tasks synchronously in the calling thread * * @author Brian Goetz and Tim Peierls */ public class WithinThreadExecutor implements Executor { public void execute(Runnable r) { r.run(); } ; }