From Jason Turner

[task.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5vkv9pm5/{from.md → to.md} +32 -0
tmp/tmp5vkv9pm5/{from.md → to.md} RENAMED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### `task` members <a id="task.members">[[task.members]]</a>
2
+
3
+ ``` cpp
4
+ task(task&& other) noexcept;
5
+ ```
6
+
7
+ *Effects:* Initializes *handle* with `exchange(other.`*`handle`*`, {})`.
8
+
9
+ ``` cpp
10
+ ~task();
11
+ ```
12
+
13
+ *Effects:* Equivalent to:
14
+
15
+ ``` cpp
16
+ if (handle)
17
+ handle.destroy();
18
+ ```
19
+
20
+ ``` cpp
21
+ template<receiver Rcvr>
22
+ state<Rcvr> connect(Rcvr&& recv);
23
+ ```
24
+
25
+ *Preconditions:* `bool(`*`handle`*`)` is `true`.
26
+
27
+ *Effects:* Equivalent to:
28
+
29
+ ``` cpp
30
+ return state<Rcvr>(exchange(handle, {}), std::forward<Rcvr>(recv));
31
+ ```
32
+