Add an unsupervise builtin and function to std::task
Calling task::unsupervise de-parents the current task, with the result that failures do not propogate up the task tree.
This commit is contained in:
parent
4738cf83b0
commit
01a52d728c
2 changed files with 10 additions and 0 deletions
|
@ -425,6 +425,11 @@ task_join(rust_task *task, rust_task *join_task) {
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
task_unsupervise(rust_task *task) {
|
||||
task->unsupervise();
|
||||
}
|
||||
|
||||
/* Debug builtins for std.dbg. */
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue