Forgot to remove main() ... :-(
This commit is contained in:
parent
48bb75b7dc
commit
9b36a40a28
@ -526,16 +526,4 @@ public class HashedWheelTimer implements Timer {
|
||||
return buf.append(')').toString();
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Timer timer = new HashedWheelTimer();
|
||||
for (int i = 0; i < 100000; i ++) {
|
||||
timer.newTimeout(new TimerTask() {
|
||||
public void run(Timeout timeout) throws Exception {
|
||||
// Extend another second.
|
||||
timeout.extend();
|
||||
}
|
||||
}, 1000, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user