Skip to content

Commit 275fcfd

Browse files
authored
i cant type
1 parent f0ac8f9 commit 275fcfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Note that if your code needs to interact with the Cocos2d UI **at all**, then yo
262262

263263
## Chaining tasks
264264

265-
You can chain tasks by using `Task::chain`. This allows you to take the result of a task once it finished and run another task right after, based on that return value. \
265+
You can chain tasks by using `Task::chain`. This allows you to take the result of a task once it finishes and run another task right after, based on that return value. \
266266
Progress updates are only sent from the last Task in the chain, for simplicity
267267

268268
```cpp
@@ -277,7 +277,7 @@ Task<std::string> newTask =
277277
278278
## Coroutines
279279
280-
Tasks can be used in [C++20 coroutine](https://en.cppreference.com/w/cpp/language/coroutines) functions, easily allowing for multiple asynchronous calls to happen within the same code. Note that this may have a little performance overhead compared to regular Task code.
280+
Tasks can be used in [C++20 coroutines](https://en.cppreference.com/w/cpp/language/coroutines), easily allowing for multiple asynchronous calls to happen within the same code. Note that this may have a little performance overhead compared to regular Task code.
281281
282282
```cpp
283283
Task<int> someTask() {
@@ -300,4 +300,4 @@ Task<std::string, int> someTask() {
300300
}
301301
co_return "done!";
302302
}
303-
```
303+
```

0 commit comments

Comments
 (0)