1
Fork 0

change spawn_connected argument to copy mode

This commit is contained in:
Niko Matsakis 2012-01-08 16:31:26 -08:00
parent 1ee9a83de0
commit 8944a390c6

View file

@ -229,7 +229,7 @@ Returns:
The new child task along with the port to receive messages and the channel The new child task along with the port to receive messages and the channel
to send messages. to send messages.
*/ */
fn spawn_connected<ToCh:send, FrCh:send>(f: connected_fn<ToCh, FrCh>) fn spawn_connected<ToCh:send, FrCh:send>(+f: connected_fn<ToCh, FrCh>)
-> connected_task<ToCh,FrCh> { -> connected_task<ToCh,FrCh> {
let from_child_port = comm::port::<FrCh>(); let from_child_port = comm::port::<FrCh>();
let from_child_chan = comm::chan(from_child_port); let from_child_chan = comm::chan(from_child_port);