kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Need Sleep( ) function #206

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need a nice Sleep() function to go with our nice Thread class.

java.lang.Thread.sleep( millis ) is OK, but hard to remember

Original issue reported on code.google.com by davidthi...@gmail.com on 13 Jun 2009 at 6:41

GoogleCodeExporter commented 8 years ago
Is this worth adding to the global namespace? It is pretty easy to add this 
line to one 
of your libraries:
sleep=java.lang.Thread.sleep;

Original comment by kris...@gmail.com on 26 Jun 2009 at 8:57

GoogleCodeExporter commented 8 years ago
From a consistent API, documentation and readibility point of view, I would say
yes... add it to the namespace.

Level of effort to add it is only one factor!

However, I'm not super strong on it.  Your call as always, of course!

Original comment by davidthi...@gmail.com on 26 Jun 2009 at 9:17

GoogleCodeExporter commented 8 years ago
How about Thread.sleep(...) ?

Original comment by kris...@gmail.com on 26 Jun 2009 at 9:23

GoogleCodeExporter commented 8 years ago
Added Thread.sleep(milli)

Original comment by kris...@gmail.com on 26 Jun 2009 at 9:26