mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
auto merge of #10419 : brson/rust/conditiondocs, r=alexcrichton
Fixes #8553 by just not mentioning TLS, and instead just referring to the 'task-local condition handler'.
This commit is contained in:
commit
88e383ef1e
@ -351,7 +351,7 @@ The `raise` method maps a value of the condition's input type to its output type
|
||||
The input type should therefore convey all relevant information to the condition handler.
|
||||
The output type should convey all relevant information _for continuing execution at the site of error_.
|
||||
When the error site raises a condition handler,
|
||||
the `Condition::raise` method searches task-local storage (TLS) for the innermost installed _handler_,
|
||||
the `Condition::raise` method searches for the innermost installed task-local condition _handler_,
|
||||
and if any such handler is found, calls it with the provided input value.
|
||||
If no handler is found, `Condition::raise` will fail the task with an appropriate error message.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user