]> git.lizzy.rs Git - rust.git/commit
std: Rename sleep, periodic, and oneshot timers to sleep_ms, etc.
authorBrian Anderson <banderson@mozilla.com>
Tue, 15 Jul 2014 02:30:05 +0000 (19:30 -0700)
committerBrian Anderson <banderson@mozilla.com>
Wed, 13 Aug 2014 18:31:47 +0000 (11:31 -0700)
commit657b679b158894556628f096a28aab364b605446
tree22fde9a2df8b169869838c90661fec4a88089a52
parent5778ed4c926da6069ab899c8d4694527ed89190c
std: Rename sleep, periodic, and oneshot timers to sleep_ms, etc.

Rename io::timer::sleep, Timer::sleep, Timer::oneshot,
Timer::periodic, to sleep_ms, oneshot_ms, periodic_ms. These functions
all take an integer and interpret it as milliseconds.

Replacement functions will be added that take Duration.

[breaking-change]
src/libstd/duration.rs [deleted file]
src/libstd/io/process.rs
src/libstd/io/signal.rs
src/libstd/io/timer.rs
src/libstd/lib.rs
src/libstd/task.rs
src/libstd/time.rs [new file with mode: 0644]