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

1 comment on commit f43fc5f

@thestinger
Copy link

Choose a reason for hiding this comment

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

r+

Please sign in to comment.