diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-05-24 16:42:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-05-24 16:42:16 -0700 |
| commit | a8c8c8ae286b517fe00da9f68a776ce1e6845f0d (patch) | |
| tree | dd90e1a3d456b9e58abbbd0c6d2d32a5ffc68fa0 /src/libstd/timer.rs | |
| parent | 433e4ca5f166f2e3322b90bc53f32bc44d534640 (diff) | |
| download | rust-a8c8c8ae286b517fe00da9f68a776ce1e6845f0d.tar.gz rust-a8c8c8ae286b517fe00da9f68a776ce1e6845f0d.zip | |
std: FIXME's and cleanups for uv
Diffstat (limited to 'src/libstd/timer.rs')
| -rw-r--r-- | src/libstd/timer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index f910b724c44..f6b88c810f4 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -23,6 +23,7 @@ for *at least* that period of time. "] fn delayed_send<T: copy send>(hl_loop: uv::hl::high_level_loop, msecs: uint, ch: comm::chan<T>, val: T) { + // FIME: Looks like we don't need to spawn here task::spawn() {|| unsafe { let timer_done_po = comm::port::<()>(); @@ -103,6 +104,7 @@ fn recv_timeout<T: copy send>(hl_loop: uv::hl::high_level_loop, let timeout_po = comm::port::<()>(); let timeout_ch = comm::chan(timeout_po); delayed_send(hl_loop, msecs, timeout_ch, ()); + // FIXME: This could be written clearer either::either( {|left_val| log(debug, #fmt("recv_time .. left_val %?", |
