tmp/tmpdl8q_rbz/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### `task` overview <a id="task.overview">[[task.overview]]</a>
|
| 2 |
+
|
| 3 |
+
The `task` class template represents a sender that can be used as the
|
| 4 |
+
return type of coroutines. The first template parameter `T` defines the
|
| 5 |
+
type of the value completion datum [[exec.async.ops]] if `T` is not
|
| 6 |
+
`void`. Otherwise, there are no value completion datums. Inside
|
| 7 |
+
coroutines returning `task<T, E>` the operand of `co_return` (if any)
|
| 8 |
+
becomes the argument of `set_value`. The second template parameter
|
| 9 |
+
`Environment` is used to customize the behavior of `task`.
|
| 10 |
+
|