-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
In a scenario where a programmer wants a java.lang.Thread to begin after an arbitrary amount of milliseconds without yielding the program, the only way to do so is to start a new Thread that calls Thread.sleep() and starts the delayed thread.
Potential Syntax:
- thread.startIn(int milliseconds) or thread.delay(int milliseconds)
Current implementation:
new Thread(new Runnable() {
@Override
public void run() {
try{
Thread.sleep(8000);
} catch (InterruptedException e) {}
new Thread(runnable).start();
}
}).start();
In a scenario where a programmer wants a java.lang.Thread to begin after an arbitrary amount of milliseconds without yielding the program, the only way to do so is to start a new Thread that calls Thread.sleep() and starts the delayed thread.
Potential Syntax:
- thread.startIn(int milliseconds) or thread.delay(int milliseconds)
Current implementation:
new Thread(new Runnable() {
@Override
public void run() {
try{
Thread.sleep(8000);
} catch (InterruptedException e) {}
new Thread(runnable).start();
}
}).start();