Skip to content

Commit 75911fa

Browse files
committed
---
yaml --- r: 13489 b: refs/heads/master c: bc507c4 h: refs/heads/master i: 13487: d7c8386 v: v3
1 parent 26f1b7f commit 75911fa

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6969f0f2fcd4441f694344bdd8d6f10aa9fc56ef
2+
refs/heads/master: bc507c4ef5a5e4da95e95c080239dbe10ffcd376
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libstd/timer.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ for *at least* that period of time.
2525
"]
2626
fn delayed_send<T: copy send>(iotask: iotask,
2727
msecs: uint, ch: comm::chan<T>, val: T) {
28-
// FIME: Looks like we don't need to spawn here
29-
task::spawn() {||
3028
unsafe {
3129
let timer_done_po = comm::port::<()>();
3230
let timer_done_ch = comm::chan(timer_done_po);
@@ -59,7 +57,6 @@ fn delayed_send<T: copy send>(iotask: iotask,
5957
comm::send(ch, copy(val));
6058
// uv_close for this timer has been processed
6159
comm::recv(timer_done_po);
62-
}
6360
};
6461
}
6562

@@ -106,7 +103,7 @@ fn recv_timeout<T: copy send>(iotask: iotask,
106103
let timeout_po = comm::port::<()>();
107104
let timeout_ch = comm::chan(timeout_po);
108105
delayed_send(iotask, msecs, timeout_ch, ());
109-
// FIXME: This could be written clearer
106+
// FIXME: This could be written clearer (#2618)
110107
either::either(
111108
{|left_val|
112109
log(debug, #fmt("recv_time .. left_val %?",

0 commit comments

Comments
 (0)