export foo; import comm::*; fn foo(x: T) -> port { let p = port(); let c = chan(p); task::spawn() {|copy c, copy x| c.send(x); } p }