3 ms·
Naming the method sleepMillis or sleepSeconds would help too.
by lowbloodsugar 5y ago
Naming the method sleepMillis or sleepSeconds would help too.
- nerdwaller 5y agoIn my opinion that's too specific as you'd need a dozen methods just to accomplish the common needs. Why not use a type as the argument that's explicit and meets even more use cases? Meaning instead of accepting an int just accept a `timedelta` in python or a `time.Duration` in go, or `2.seconds` (I don't recall the type) in rails?