about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-09-28 14:55:31 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-09-28 14:55:43 -0700
commit70ae3e7bf212b0db5949e113858bae1da0e6ae29 (patch)
tree6ad1ae76eb930a44e835a590d3762a1ebfb86220 /src/libstd/timer.rs
parent94f7bf98f96a14fa14c45723a9e40f348ab9d655 (diff)
downloadrust-70ae3e7bf212b0db5949e113858bae1da0e6ae29.tar.gz
rust-70ae3e7bf212b0db5949e113858bae1da0e6ae29.zip
De-export std::{bitv, cell, timer}. Part of #3583.
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index ae79892b873..a2f9796f89e 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -7,8 +7,6 @@ use uv::iotask;
 use iotask::IoTask;
 use comm = core::comm;
 
-export delayed_send, sleep, recv_timeout;
-
 /**
  * Wait for timeout period then send provided value over a channel
  *
@@ -25,8 +23,8 @@ export delayed_send, sleep, recv_timeout;
  * * ch - a channel of type T to send a `val` on
  * * val - a value of type T to send over the provided `ch`
  */
-fn delayed_send<T: Copy Send>(iotask: IoTask,
-                              msecs: uint, ch: comm::Chan<T>, +val: T) {
+pub fn delayed_send<T: Copy Send>(iotask: IoTask,
+                                  msecs: uint, ch: comm::Chan<T>, +val: T) {
         unsafe {
             let timer_done_po = core::comm::Port::<()>();
             let timer_done_ch = core::comm::Chan(timer_done_po);
@@ -74,7 +72,7 @@ fn delayed_send<T: Copy Send>(iotask: IoTask,
  * * `iotask` - a `uv::iotask` that the tcp request will run on
  * * msecs - an amount of time, in milliseconds, for the current task to block
  */
-fn sleep(iotask: IoTask, msecs: uint) {
+pub fn sleep(iotask: IoTask, msecs: uint) {
     let exit_po = core::comm::Port::<()>();
     let exit_ch = core::comm::Chan(exit_po);
     delayed_send(iotask, msecs, exit_ch, ());
@@ -101,7 +99,7 @@ fn sleep(iotask: IoTask, msecs: uint) {
  * on the provided port in the allotted timeout period, then the result will
  * be a `some(T)`. If not, then `none` will be returned.
  */
-fn recv_timeout<T: Copy Send>(iotask: IoTask,
+pub fn recv_timeout<T: Copy Send>(iotask: IoTask,
                               msecs: uint,
                               wait_po: comm::Port<T>) -> Option<T> {
     let timeout_po = comm::Port::<()>();