diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-11 13:50:04 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-13 15:52:50 -0800 |
| commit | ed4fac01b5e207df0f0c7e0ea964bd3088826d27 (patch) | |
| tree | abae4bd8b385afdfbba28988560992683102970b /src/libstd/timer.rs | |
| parent | a277081ee481174cd28f7e85aaf1c4de912cbf4f (diff) | |
| download | rust-ed4fac01b5e207df0f0c7e0ea964bd3088826d27.tar.gz rust-ed4fac01b5e207df0f0c7e0ea964bd3088826d27.zip | |
Rename Send trait to Owned
Diffstat (limited to 'src/libstd/timer.rs')
| -rw-r--r-- | src/libstd/timer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index c9754ad9980..a9638ad05c3 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -32,7 +32,7 @@ use comm = core::comm; * * ch - a channel of type T to send a `val` on * * val - a value of type T to send over the provided `ch` */ -pub fn delayed_send<T: Send>(iotask: IoTask, +pub fn delayed_send<T: Owned>(iotask: IoTask, msecs: uint, ch: comm::Chan<T>, val: T) { unsafe { let timer_done_po = core::comm::Port::<()>(); @@ -108,7 +108,7 @@ pub 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. */ -pub fn recv_timeout<T: Copy Send>(iotask: IoTask, +pub fn recv_timeout<T: Copy Owned>(iotask: IoTask, msecs: uint, wait_po: comm::Port<T>) -> Option<T> { let timeout_po = comm::Port::<()>(); |
