Skip to content

Commit

Permalink
libcore: make spawn_supervised documentation reflect its behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Apr 18, 2013
1 parent d32d4d1 commit f43fc5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,9 @@ pub fn spawn_unlinked(f: ~fn()) {
pub fn spawn_supervised(f: ~fn()) {
/*!
* Creates a child task unlinked from the current one. If either this
* task or the child task fails, the other will not be killed.
* Creates a child task supervised by the current one. If the child
* task fails, the parent will not be killed, but if the parent fails,
* the child will be killed.
*/
task().supervised().spawn(f)
Expand Down

5 comments on commit f43fc5f

@bors
Copy link
Contributor

@bors bors commented on f43fc5f Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at huonw@f43fc5f

@bors
Copy link
Contributor

@bors bors commented on f43fc5f Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging huonw/rust/core-task-spawn-supervised-doc = f43fc5f into auto

@bors
Copy link
Contributor

@bors bors commented on f43fc5f Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huonw/rust/core-task-spawn-supervised-doc = f43fc5f merged ok, testing candidate = bd75463

@bors
Copy link
Contributor

@bors bors commented on f43fc5f Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on f43fc5f Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = bd75463

Please sign in to comment.