Skip to content

Commit 8ec467d

Browse files
committed
std: Update timer for new kind rules
1 parent 92e9e73 commit 8ec467d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libstd/timer.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ for *at least* that period of time.
2121
* ch - a channel of type T to send a `val` on
2222
* val - a value of type T to send over the provided `ch`
2323
"]
24-
fn delayed_send<T: send>(hl_loop: uv::hl::high_level_loop,
25-
msecs: uint, ch: comm::chan<T>, val: T) {
24+
fn delayed_send<T: copy send>(hl_loop: uv::hl::high_level_loop,
25+
msecs: uint, ch: comm::chan<T>, val: T) {
2626
task::spawn() {||
2727
unsafe {
2828
let timer_done_po = comm::port::<()>();
@@ -97,8 +97,9 @@ An `option<T>` representing the outcome of the call. If the call `recv`'d on
9797
the provided port in the allotted timeout period, then the result will be a
9898
`some(T)`. If not, then `none` will be returned.
9999
"]
100-
fn recv_timeout<T: send>(hl_loop: uv::hl::high_level_loop,
101-
msecs: uint, wait_po: comm::port<T>) -> option<T> {
100+
fn recv_timeout<T: copy send>(hl_loop: uv::hl::high_level_loop,
101+
msecs: uint,
102+
wait_po: comm::port<T>) -> option<T> {
102103
let timeout_po = comm::port::<()>();
103104
let timeout_ch = comm::chan(timeout_po);
104105
delayed_send(hl_loop, msecs, timeout_ch, ());

0 commit comments

Comments
 (0)