mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
libcore: make spawn_supervised documentation reflect its behaviour.
This commit is contained in:
parent
d32d4d1209
commit
f43fc5fff8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user