This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This has since been improved and moved to: https://github.com/breerly/fig-mesos | |
# Cheers :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn worksShared() { | |
let (port, chan): (Port<int>, Chan<int>) = stream(); | |
let shared = std::comm::SharedChan::new(chan); | |
for i in range(0, 100) { | |
let chan = shared.clone(); | |
do spawn { | |
chan.send(i); | |
} | |
} |