comparison rust/src/main.rs @ 614:e1bab5b36352 rust

using some refcells for the paramwaiter
author Matt Johnston <matt@ucc.asn.au>
date Tue, 07 Mar 2017 23:04:02 +0800
parents f3e39e2107fd
children f153aec221be
comparison
equal deleted inserted replaced
613:5c2b0d47bb83 614:e1bab5b36352
69 }); 69 });
70 handle.spawn(t); 70 handle.spawn(t);
71 r 71 r
72 }); 72 });
73 73
74 let param_stream = paramwaiter::ParamWaiter::new(config, &handle).stream(); 74 let param_stream = paramwaiter::ParamWaiter::stream(config, &handle);
75 let p = param_stream.map(|p| { 75 let p = param_stream.map(|p| {
76 fridge::Message::Params(p) 76 fridge::Message::Params(p)
77 }); 77 });
78 78
79 let timeouts = fridge.wakeups(); 79 let timeouts = fridge.wakeups();