svoid test_ThreadPool() { new ThreadPool pool; print(pool); flagTest(flag -> pool.acquireThread((Runnable) flag); print(pool); repeat 8 { var t = pool.acquireThread(r { sleepSeconds(1.0); printWithMS(this + " done"); }); printWithMS("Acquired thread " + t); } print(pool); }