提交 8944a390 编写于 作者: N Niko Matsakis

change spawn_connected argument to copy mode

上级 1ee9a83d
......@@ -229,7 +229,7 @@ fn spawn_joinable(+f: sendfn()) -> joinable_task {
The new child task along with the port to receive messages and the channel
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> {
let from_child_port = comm::port::<FrCh>();
let from_child_chan = comm::chan(from_child_port);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册