Skip to content

Commit 7b19574

Browse files
committed
Mention Share in the tutorial
1 parent 0aebdac commit 7b19574

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/tutorial.md

+4
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,10 @@ and may not be overridden:
20952095
Types are sendable
20962096
unless they contain managed boxes, managed closures, or references.
20972097
2098+
* `Share` - Types that are *threadsafe*
2099+
These are types that are safe to be used across several threads with access to
2100+
a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal mutable data.
2101+
20982102
* `Freeze` - Constant (immutable) types.
20992103
These are types that do not contain anything intrinsically mutable.
21002104
Intrinsically mutable values include `Cell` in the standard library.

0 commit comments

Comments
 (0)