We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d32d4d1 commit f43fc5fCopy full SHA for f43fc5f
src/libcore/task/mod.rs
@@ -466,8 +466,9 @@ pub fn spawn_unlinked(f: ~fn()) {
466
467
pub fn spawn_supervised(f: ~fn()) {
468
/*!
469
- * Creates a child task unlinked from the current one. If either this
470
- * 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,
471
+ * the child will be killed.
472
*/
473
474
task().supervised().spawn(f)
0 commit comments