4748495051525354555657
TaskRunner tk = new TaskRunner(); final Counter c = new Counter(); for (int i = 0; i < 3; i++) { tk.submitNamed("myTask", new Runnable() { @Override public void run() { c.incr(); } });
6667686970717273747576
TaskRunner tk = new TaskRunner(); final Counter c = new Counter(); for (int i = 0; i < 5; i++) { tk.submitNamed("myTask", true, new Runnable() { @Override public void run() { sleep(); c.incr(); }
5253545556575859606162
7172737475767778798081