From Jason Turner

[thread.jthread.stop]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpxygkf32v/{from.md → to.md} +20 -0
tmp/tmpxygkf32v/{from.md → to.md} RENAMED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Stop token handling <a id="thread.jthread.stop">[[thread.jthread.stop]]</a>
2
+
3
+ ``` cpp
4
+ [[nodiscard]] stop_source get_stop_source() noexcept;
5
+ ```
6
+
7
+ *Effects:* Equivalent to: `return ssource;`
8
+
9
+ ``` cpp
10
+ [[nodiscard]] stop_token get_stop_token() const noexcept;
11
+ ```
12
+
13
+ *Effects:* Equivalent to: `return ssource.get_token();`
14
+
15
+ ``` cpp
16
+ bool request_stop() noexcept;
17
+ ```
18
+
19
+ *Effects:* Equivalent to: `return ssource.request_stop();`
20
+